From: hackbard Date: Mon, 14 Mar 2005 19:35:49 +0000 (+0000) Subject: added update_hdwlinux_org.sh script X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3792df74842a88b7376af0a35816222ca113d4d6;p=scripts%2Fscripts.git added update_hdwlinux_org.sh script --- diff --git a/update_hdwlinux_org.sh b/update_hdwlinux_org.sh new file mode 100755 index 0000000..f4ca5bb --- /dev/null +++ b/update_hdwlinux_org.sh @@ -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 +