-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgatherSource.sh
executable file
·50 lines (35 loc) · 938 Bytes
/
gatherSource.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
echo "removing zip files..."
rm *.zip
version=$(python ./makerVersion.py)
dashed_version=$(python ./makerVersion.py --use-dash)
target=the-maker-$version-src
dash=the-maker-$dashed_version-src
rm $target
mkdir $target
echo "Gathering source..."
echo "All files..."
cp -v -f *.* $target
echo "System..."
cp -R -P -v -f system $target/system
cp -R -P -v -f XRCed_Files $target/XRCed_Files
echo "removing zip files..."
rm $target/*.zip
echo "removing .pyc files..."
rm $target/*.pyc
echo "removing Entitlements..."
rm $target/Entitlements.plist
echo "removing App Store Setup..."
rm $target/setup_app_store.py
echo "removing App Store compile script..."
rm $target/compile.sh
echo "removing Packages..."
rm $target/TheMaker.pkg
echo "removing Tools..."
rm -v $target/gatherSource.sh
echo "Packaging..."
zip -r $dash $target/.
echo "Renaming..."
mv $dash.zip $target.zip
echo "removing tmp files..."
rm -rf $target