summaryrefslogtreecommitdiff
path: root/scripts/update-web.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-07 20:02:51 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-07 20:02:51 (GMT)
commit0d619e5ac155e37c432d57062d8224a58c9d59ab (patch)
tree10183df17cd4786ee1ef43b95c988fefd13ca990 /scripts/update-web.sh
parentaa8aee623adc74cbfe87f9e92e30be4a9ed3a7c8 (diff)
parentb028b704e029a5161d3703efda35642a37c28cb6 (diff)
Merge branch 'master' into linear_extrude_argument
Diffstat (limited to 'scripts/update-web.sh')
-rwxr-xr-xscripts/update-web.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/update-web.sh b/scripts/update-web.sh
index 9036d9b..c611d28 100755
--- a/scripts/update-web.sh
+++ b/scripts/update-web.sh
@@ -11,6 +11,8 @@ fi
if [[ $OSTYPE =~ "darwin" ]]; then
OS=MACOSX
+elif [[ $OSTYPE == "linux-gnu" ]]; then
+ OS=LINUX
fi
indexfile=../openscad.github.com/index.html
@@ -21,6 +23,10 @@ if [ -f $indexfile ]; then
file2=$2
sed -i .backup -e "s/^\(.*win-snapshot-zip.*\)\(OpenSCAD-.*\.zip\)\(.*\)\(OpenSCAD-.*zip\)\(.*$\)/\\1$file1\\3$file1\\5/" $indexfile
sed -i .backup -e "s/^\(.*win-snapshot-exe.*\)\(OpenSCAD-.*-Installer\.exe\)\(.*\)\(OpenSCAD-.*-Installer.exe\)\(.*$\)/\\1$file2\\3$file2\\5/" $indexfile
+ elif [ $OS == LINUX ]; then
+ file2=$2
+ sed -i .backup -e "s/^\(.*linux-snapshot-32.*\)\(openscad-.*-32\.tar\.gz\)\(.*\)\(openscad-.*-32\.tar\.gz\)\(.*$\)/\\1$file1\\3$file1\\5/" $indexfile
+ sed -i .backup -e "s/^\(.*linux-snapshot-64.*\)\(openscad-.*-64\.tar\.gz\)\(.*\)\(openscad-.*-64\.tar\.gz\)\(.*$\)/\\1$file2\\3$file2\\5/" $indexfile
fi
echo "Web page updated. Remember to commit and push openscad.github.com"
else
contact: Jan Huwald // Impressum