From 4f7051412bc43d3ad372dd88e898d38e26ecbcf4 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 8 Sep 2011 03:27:18 +0200 Subject: Bundle MCAD library 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"` -- cgit v0.10.1