Skip to content

Commit bf6b7c3

Browse files
committed
reorganization: move platform/osx/Packager to package & adapt package script
Signed-off-by: Tim Blechmann <[email protected]>
1 parent eb1e716 commit bf6b7c3

File tree

8 files changed

+18
-19
lines changed

8 files changed

+18
-19
lines changed
File renamed without changes.
File renamed without changes.

platform/osx/Packager/package renamed to package/package

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
basename=`basename $PWD`
4-
if [ $basename != "Packager" ]; then
4+
if [ $basename != "package" ]; then
55
echo "This script must be ran from within the Packager directory."
66
exit 1
77
fi
@@ -13,7 +13,7 @@ fi
1313

1414
version=`date "+%Y-%m-%d"`
1515
include_optionals=false
16-
if [ `uname` = 'Darwin' ]; then
16+
if [ `uname` = 'Darwin' ]; then
1717
package_type="osx"
1818
else
1919
package_type="source"
@@ -40,10 +40,10 @@ fi
4040
if [ $package_type == "source" ]; then
4141
mkdir SuperCollider-Source
4242
returndir=`pwd`
43-
cd ../../
43+
cd ../
4444
git archive $revision | tar -x --exclude ".gitignore" -C "$returndir/SuperCollider-Source"
4545
cd $returndir
46-
46+
4747
if $include_optionals; then
4848
cp -Rp optional SuperCollider-Source/optional_installs
4949
cp OPTIONALS_README_SOURCE.txt SuperCollider-Source/optional_installs/README.txt
@@ -53,24 +53,23 @@ if [ $package_type == "source" ]; then
5353
filename="SuperCollider-$version-Source.tar.gz"
5454
filenamelinux="SuperCollider-$version-Source-linux.tar.gz"
5555
fi
56-
56+
5757
# Here we build a list of (many) files that are useless on linux, so as to build a slimline source.tar.gz
5858
find SuperCollider-Source -iname windows -or -iname osx -or -name "*.xcodeproj" -or -name scide_scapp -or -name "iPhone*" > LinuxExclusions.txt
5959
echo 'SuperCollider-Source/SuperColliderAU
60-
SuperCollider-Source/Psycollider
61-
SuperCollider-Source/README OS X
62-
SuperCollider-Source/README WINDOWS
63-
SuperCollider-Source/README IPHONE
64-
SuperCollider-Source/common/include/libsndfile
65-
SuperCollider-Source/common/include/curl
66-
SuperCollider-Source/common/include/icu
67-
SuperCollider-Source/mac
68-
SuperCollider-Source/iphone
69-
SuperCollider-Source/common/Source/lang/LangPrimSource/HID_Utilities
70-
SuperCollider-Source/common/Source/lang/LangPrimSource/WiiMote_OSX
71-
SuperCollider-Source/common/Headers/app
72-
SuperCollider-Source/common/Source/app' >> LinuxExclusions.txt
73-
60+
SuperCollider-Source/editors/Psycollider
61+
SuperCollider-Source/platform/README OS X
62+
SuperCollider-Source/platform/README WINDOWS
63+
SuperCollider-Source/platform/README IPHONE
64+
SuperCollider-Source/external_libraries/libsndfile
65+
SuperCollider-Source/external_libraries/curl
66+
SuperCollider-Source/external_libraries/icu
67+
SuperCollider-Source/platform/mac
68+
SuperCollider-Source/platform/iphone
69+
SuperCollider-Source/lang/LangPrimSource/HID_Utilities
70+
SuperCollider-Source/lang/LangPrimSource/WiiMote_OSX
71+
SuperCollider-Source/editors/scapp' >> LinuxExclusions.txt
72+
7473
tar cfz "$filename" SuperCollider-Source
7574
tar cfzX "$filenamelinux" LinuxExclusions.txt SuperCollider-Source
7675
rm -rf SuperCollider-Source
File renamed without changes.

0 commit comments

Comments
 (0)