diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-05 00:06:10 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-05 00:06:10 (GMT) |
commit | 06d48a47f8a2e7899b4edb3fae75a34479453e19 (patch) | |
tree | edc3020aa111c219b56fb51bd188aa6d94223240 /scripts/release-common.sh | |
parent | a56721af475311b2442e9d5d937455be6f135c93 (diff) |
favor exclusion during copy instead of rm of .git directory.
Diffstat (limited to 'scripts/release-common.sh')
-rwxr-xr-x | scripts/release-common.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/release-common.sh b/scripts/release-common.sh index 84874bf..dfd057a 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -134,6 +134,12 @@ fi echo "Creating directory structure..." +if [ ! -e $OPENSCADDIR/libraries/MCAD/__init__.py ]; then + echo "Downloading MCAD" + git submodule init + git submodule update +fi + case $OS in MACOSX) EXAMPLESDIR=OpenSCAD.app/Contents/Resources/examples @@ -153,10 +159,6 @@ case $OS in ;; esac -if [ -d .git ]; then - git submodule update -fi - if [ -n $EXAMPLESDIR ]; then echo $EXAMPLESDIR mkdir -p $EXAMPLESDIR @@ -166,9 +168,9 @@ fi if [ -n $LIBRARYDIR ]; then echo $LIBRARYDIR mkdir -p $LIBRARYDIR - cp -R libraries/* $LIBRARYDIR + tar cf libraries.tar --exclude=.git* + cd $LIBRARYDIR && tar xf $OPENSCADDIR/libraries.tar && cd $OPENSCADDIR chmod -R u=rwx,go=r,+X $LIBRARYDIR/* - rm -rf `find $LIBRARYDIR -name ".git"` fi echo "Creating archive.." |