added hdw-linux presentation script
[scripts/scripts.git] / present_hdw_scripts.sh
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."
+