Skip to content

Commit

Permalink
Use git-archive-all in "package" script (absorb functionality of buil…
Browse files Browse the repository at this point in the history
…d_tarball.sh, delete it)
  • Loading branch information
danstowell committed Jan 5, 2011
1 parent df00e73 commit 5c6d892
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
14 changes: 0 additions & 14 deletions build_tarball.sh

This file was deleted.

File renamed without changes.
24 changes: 15 additions & 9 deletions package/package
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ if [ $basename != "package" ]; then
exit 1
fi

if [ -d SuperCollider ]; then
echo "Please remove the ./SuperCollider directory before running this script."
exit 1
fi

version=`date "+%Y-%m-%d"`
include_optionals=false
if [ `uname` = 'Darwin' ]; then
Expand Down Expand Up @@ -38,11 +33,18 @@ if [ "`git status -s -uno`" != "" ]; then
fi

if [ $package_type == "source" ]; then
mkdir SuperCollider-Source
if [ -d SuperCollider-Source ]; then
echo "Please remove the ./SuperCollider-Source directory before running this script."
exit 1
fi
returndir=`pwd`
cd ../
git archive $revision | tar -x --exclude ".gitignore" -C "$returndir/SuperCollider-Source"
cd $returndir
bash package/git-archive-all.sh --prefix SuperCollider-Source/ "$returndir/SuperCollider-Source.tmp.tar"
cd "$returndir"
# NB we only need one instance of boost, so we exclude one of its two appearances as a submodule in the following
tar -x --exclude ".gitignore" --exclude ".gitmodules" \
--exclude "SuperCollider-Source/external_libraries/nova-tt/boost_lockfree" \
-f SuperCollider-Source.tmp.tar

if $include_optionals; then
cp -Rp optional SuperCollider-Source/optional_installs
Expand Down Expand Up @@ -72,9 +74,13 @@ SuperCollider-Source/editors/scapp' >> LinuxExclusions.txt

tar cfz "$filename" SuperCollider-Source
tar cfzX "$filenamelinux" LinuxExclusions.txt SuperCollider-Source
rm -rf SuperCollider-Source
rm -rf SuperCollider-Source SuperCollider-Source.tmp.tar
exit
else
if [ -d SuperCollider ]; then
echo "Please remove the ./SuperCollider directory before running this script."
exit 1
fi
if $include_optionals; then
opt_options='--copy dmg_with_optionals.ds_store:/.DS_Store --copy optional/:/Optional\ Installs --copy OPTIONALS_README_OSX.rtf:/Optional\ Installs/README.rtf'
filename="SuperCollider-$version-With-Extras.dmg"
Expand Down

0 comments on commit 5c6d892

Please sign in to comment.