summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/macosx-build-dependencies.sh2
-rwxr-xr-xscripts/publish-macosx.sh3
-rwxr-xr-xscripts/release-common.sh18
-rwxr-xr-xscripts/release-linux.sh6
-rwxr-xr-xscripts/update-web.sh14
5 files changed, 36 insertions, 7 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index d06c90e..0ed375f 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -125,7 +125,7 @@ build_cgal()
tar xzf CGAL-$version.tar.gz
cd CGAL-$version
# We build a static lib. Not really necessary, but it's well tested.
- cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DBUILD_SHARED_LIBS=FALSE -DCMAKE_OSX_DEPLOYMENT_TARGET="10.5" -DCMAKE_OSX_ARCHITECTURES="i386;x86_64"
+ cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DBUILD_SHARED_LIBS=FALSE -DCMAKE_OSX_DEPLOYMENT_TARGET="10.5" -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DBOOST_ROOT=$DEPLOYDIR
make -j4
make install
}
diff --git a/scripts/publish-macosx.sh b/scripts/publish-macosx.sh
index 6415b52..088e64e 100755
--- a/scripts/publish-macosx.sh
+++ b/scripts/publish-macosx.sh
@@ -20,3 +20,6 @@ cp OpenSCAD-$VERSION.dmg ~/Dropbox/Public
ln -sf OpenSCAD-$VERSION.dmg ~/Dropbox/Public/OpenSCAD-latest.dmg
echo "Upload in progress..."
+
+# Update snapshot filename on wab page
+`dirname $0`/update-web.sh OpenSCAD-$VERSION.dmg
diff --git a/scripts/release-common.sh b/scripts/release-common.sh
index 340266d..9261d7a 100755
--- a/scripts/release-common.sh
+++ b/scripts/release-common.sh
@@ -80,17 +80,29 @@ echo "Creating directory structure..."
case $OS in
MACOSX)
EXAMPLESDIR=OpenSCAD.app/Contents/Resources/examples
+ LIBRARYDIR=OpenSCAD.app/Contents/Resources/libraries
;;
*)
EXAMPLESDIR=openscad-$VERSION/examples/
+ LIBRARYDIR=openscad-$VERSION/libraries/
rm -rf openscad-$VERSION
mkdir openscad-$VERSION
;;
esac
-mkdir -p $EXAMPLESDIR
-cp examples/* $EXAMPLESDIR
-chmod -R 644 $EXAMPLESDIR/*
+if [ -n $EXAMPLESDIR ]; then
+ echo $EXAMPLESDIR
+ mkdir -p $EXAMPLESDIR
+ cp examples/* $EXAMPLESDIR
+ chmod -R 644 $EXAMPLESDIR/*
+fi
+if [ -n $LIBRARYDIR ]; then
+ echo $LIBRARYDIR
+ mkdir -p $LIBRARYDIR
+ cp -R libraries/* $LIBRARYDIR
+ chmod -R u=rwx,go=r,+X $LIBRARYDIR/*
+ rm -rf `find $LIBRARYDIR -name ".git"`
+fi
echo "Creating archive.."
diff --git a/scripts/release-linux.sh b/scripts/release-linux.sh
index 35d177f..7675c07 100755
--- a/scripts/release-linux.sh
+++ b/scripts/release-linux.sh
@@ -87,6 +87,6 @@ chmod 755 -R release/
cp examples/* release/examples/
chmod 644 -R release/examples/*
-cp libraries/* release/libraries/
-chmod 644 -R release/libraries/*
-
+cp -R libraries/* release/libraries/
+chmod -R u=rwx,go=r,+X release/libraries/*
+rm -rf `find release/libraries -name ".git"`
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