Skip to content

Commit

Permalink
Merge pull request #129 from brad/linux-release
Browse files Browse the repository at this point in the history
Linux release
  • Loading branch information
kintel committed Jun 20, 2012
2 parents 9698d1d + 32a0fcb commit d6ff5e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release-common.sh
Expand Up @@ -186,6 +186,6 @@ case $OS in
strip openscad-$VERSION/lib/openscad/*
cp scripts/installer-linux.sh openscad-$VERSION/install.sh
chmod 755 -R openscad-$VERSION/
tar cz openscad-$VERSION > openscad-$VERSION.x86-64.tar.gz
tar cz openscad-$VERSION > openscad-$VERSION.x86-$ARCH.tar.gz
;;
esac
6 changes: 6 additions & 0 deletions scripts/update-web.sh
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d6ff5e9

Please sign in to comment.