summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/genSkelTar.sh8
-rwxr-xr-xbin/load.sh4
-rwxr-xr-xbin/updateConfig.sh4
-rwxr-xr-xsrc/vim-latex.sh4
-rwxr-xr-xsrc/zshrc.sh9
5 files changed, 26 insertions, 3 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
diff --git a/src/vim-latex.sh b/src/vim-latex.sh
index 4979e67..d0f8643 100755
--- a/src/vim-latex.sh
+++ b/src/vim-latex.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-# goto root dir (this script resides in bin)
-BASEDIR=$(dirname $0)
+# goto root dir (this script resides in src)
+BASEDIR=`dirname $(readlink -f $0)`
cd ${BASEDIR}/../
cd src/vim-latex
diff --git a/src/zshrc.sh b/src/zshrc.sh
new file mode 100755
index 0000000..36b76d7
--- /dev/null
+++ b/src/zshrc.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# goto root dir (this script resides in src)
+BASEDIR=`dirname $(readlink -f $0)`
+cd ${BASEDIR}/../
+
+rm -f gen/.zshrc
+WGET=$(which wget)
+$WGET -q -O gen/.zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc