diff options
| author | David Kaufmann <astra@fsinf.at> | 2011-11-14 03:33:12 +0100 |
|---|---|---|
| committer | David Kaufmann <astra@fsinf.at> | 2011-11-14 03:33:12 +0100 |
| commit | da275ceb1e5c4813a7a27e92a002c18a6ff22072 (patch) | |
| tree | 5836cbb1a1c85c248027f550bf844414fbcc0171 /bin | |
| parent | 2b4f3cadced6a0bc6e8b6f4b83414f928eee63ce (diff) | |
| download | config-da275ceb1e5c4813a7a27e92a002c18a6ff22072.tar.gz | |
updated scripts
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/genSkelTar.sh | 8 | ||||
| -rwxr-xr-x | bin/load.sh | 4 | ||||
| -rwxr-xr-x | bin/updateConfig.sh | 4 |
3 files changed, 15 insertions, 1 deletions
diff --git a/bin/genSkelTar.sh b/bin/genSkelTar.sh index f6f7ada..4c8166c 100755 --- a/bin/genSkelTar.sh +++ b/bin/genSkelTar.sh @@ -1,22 +1,28 @@ #!/bin/bash # goto root dir (this script resides in bin) -BASEDIR=$(dirname $0) +BASEDIR=`dirname $(readlink -f $0)` cd ${BASEDIR}/../ # cleanup old files +#echo "cleaning up" rm -f skel.tar.gz skel.tar rm -rf gen mkdir gen # generate files in 'gen' +#echo "generating gen/ directory" ls -1 src/*.sh | while read file do + echo "generating ${file}" $file >/dev/null done # pack files to skel.tar +echo "packing skel/" tar -cf skel.tar skel +echo "packing gen/" tar -uf skel.tar gen # compress to skel.tar.gz +echo "compressing to skel.tar.gz" gzip skel.tar diff --git a/bin/load.sh b/bin/load.sh index 31f0652..9c810b7 100755 --- a/bin/load.sh +++ b/bin/load.sh @@ -1,5 +1,9 @@ #!/bin/bash +# goto root dir (this script resides in src) +BASEDIR=`dirname $(readlink -f $0)` +cd ${BASEDIR}/../ + WGET=$(which wget) URL="http://pluto.fsinf.at/~astra/config/" FILE="skel.tar.gz" diff --git a/bin/updateConfig.sh b/bin/updateConfig.sh index 05056c1..f1cd537 100755 --- a/bin/updateConfig.sh +++ b/bin/updateConfig.sh @@ -1,5 +1,9 @@ #!/bin/bash +# goto root dir (this script resides in src) +BASEDIR=`dirname $(readlink -f $0)` +cd ${BASEDIR}/../ + HOSTFILE=~/pssh.hosts if [ -f ${HOSTFILE} ]; then |
