summaryrefslogtreecommitdiff
path: root/scripts/release-common.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-08 01:27:18 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-08 01:27:18 (GMT)
commit4f7051412bc43d3ad372dd88e898d38e26ecbcf4 (patch)
treefe0d129a731580abce4c50e2419a75c21b200ad4 /scripts/release-common.sh
parent4abadeb8e410c96f4ae262a4557a319cad66ec62 (diff)
Bundle MCAD library
Diffstat (limited to 'scripts/release-common.sh')
-rwxr-xr-xscripts/release-common.sh18
1 files changed, 15 insertions, 3 deletions
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.."
contact: Jan Huwald // Impressum