added hdw-linux presentation script
authorhackbard <hackbard>
Mon, 25 Nov 2002 17:36:37 +0000 (17:36 +0000)
committerhackbard <hackbard>
Mon, 25 Nov 2002 17:36:37 +0000 (17:36 +0000)
README
present_hdw_scripts.sh [new file with mode: 0755]

diff --git a/README b/README
index b196c3a..bd262ee 100644 (file)
--- a/README
+++ b/README
@@ -3,4 +3,7 @@
 - backup.sh
   simple script making backups of important files and data.
 
+- present_hdw_scripts.sh
+  small script to copy the hdw-linux scripts on my http server
+
 EOF
diff --git a/present_hdw_scripts.sh b/present_hdw_scripts.sh
new file mode 100755 (executable)
index 0000000..745414e
--- /dev/null
@@ -0,0 +1,21 @@
+# creates a directory with the latest cvs hdw source to present it online
+#
+# author: hackbard
+#
+
+ver="0.2-dev"
+inst_path="/chroot/www/htdocs/download/hdw-linux/hdw-linux-${ver}/scripts"
+
+echo "installing scripts to $inst_path ..."
+
+rm -rf $inst_path
+mkdir -p $inst_path
+
+cvs -d:pserver:anonymous@localhost:/hdw-linux co hdw-linux-${ver}
+mv hdw-linux-${ver}/* $inst_path
+chmod -R 755 $inst_path
+
+rm -rf hdw-linux-${ver}
+
+echo "finished."
+