-
Notifications
You must be signed in to change notification settings - Fork 16
/
makedsvrpackage.sh
executable file
·32 lines (30 loc) · 1.13 KB
/
makedsvrpackage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# DSVR (Domain Specific VPN Router)
# Copyright 2013 Darran Boyd
#
# dboyd13 [at @] gmail.com
#
# Licensed under the "Attribution-NonCommercial-ShareAlike" Vizsage
# Public License (the "License"). You may not use this file except
# in compliance with the License. Roughly speaking, non-commercial
# users may share and modify this code, but must give credit and
# share improvements. However, for proper details please
# read the full License, available at
# https://vizsage.com/license/Vizsage-License-BY-NC-SA.html
# and the handy reference for understanding the full license at
# https://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html
#
# Unless required by applicable law or agreed to in writing, any
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
if [ -z "$1" ]; then
echo "Please specify version number e.g. 0.1a"
exit
fi
mkdir ~/dsvr-v$1
cp -r ./* ~/dsvr-v$1
cd ~/
tar -cvzf dsvr-$1.tar.gz dsvr-v$1
rm -r ~/dsvr-v$1/