]> hackdaworld.org Git - scripts/scripts.git/commitdiff
added update_hdwlinux_org.sh script
authorhackbard <hackbard>
Mon, 14 Mar 2005 19:35:49 +0000 (19:35 +0000)
committerhackbard <hackbard>
Mon, 14 Mar 2005 19:35:49 +0000 (19:35 +0000)
update_hdwlinux_org.sh [new file with mode: 0755]

diff --git a/update_hdwlinux_org.sh b/update_hdwlinux_org.sh
new file mode 100755 (executable)
index 0000000..f4ca5bb
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+oldpwd=$PWD
+hdwdir=/var/www/hdwlinux.org/download/hdw-linux/hdw-linux-cvs
+
+echo -en "hdw-linux.cvs update ..." >> /var/log/messages
+
+cd $hdwdir/scripts
+cvs up -d
+cd ..
+rm -f $hdwdir/snapshot/hdw-linux-cvs.tar*
+tar cf $hdwdir/snapshot/hdw-linux-cvs.tar hdw-linux-cvs
+bzip2 $hdwdir/snapshot/hdw-linux-cvs.tar
+cd $oldpwd
+
+echo -en "done\n" >> /var/log/messages
+