summaryrefslogtreecommitdiff
path: root/scripts/update-web.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-web.sh')
-rwxr-xr-xscripts/update-web.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/update-web.sh b/scripts/update-web.sh
new file mode 100755
index 0000000..4180d01
--- /dev/null
+++ b/scripts/update-web.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+dmgfile=$1
+if [ -z "$dmgfile" ]; then
+ echo "Usage: $0 <dmgfile>"
+ exit 1
+fi
+indexfile=../openscad.github.com/index.html
+if [ -f $indexfile ]; then
+ sed -i .backup -e "s/^\(.*mac-snapshot.*\)\(OpenSCAD-.*\.dmg\)\(.*\)\(OpenSCAD-.*dmg\)\(.*$\)/\\1$dmgfile\\3$dmgfile\\5/" $indexfile
+ echo "Web page updated. Remember to commit and push openscad.github.com"
+else
+ echo "Web page not found at $indexfile"
+fi
contact: Jan Huwald // Impressum