2011-01-07 10:30:17 +01:00
|
|
|
TOP=$PWD
|
|
|
|
redo-ifchange sources.list
|
2011-01-23 01:35:31 +01:00
|
|
|
redo-ifchange Info.plist bits/runpython \
|
2011-01-07 10:30:17 +01:00
|
|
|
$(while read name newname; do echo "$name"; done <sources.list)
|
|
|
|
|
|
|
|
rm -rf "$1.app"
|
|
|
|
mkdir "$1.app" "$1.app/Contents"
|
|
|
|
cd "$1.app/Contents"
|
|
|
|
|
|
|
|
cp "$TOP/Info.plist" .
|
|
|
|
|
|
|
|
mkdir MacOS
|
2011-01-23 01:35:31 +01:00
|
|
|
cp "$TOP/bits/runpython" MacOS/Sshuttle
|
2011-01-07 10:30:17 +01:00
|
|
|
|
2011-01-19 05:16:24 +01:00
|
|
|
mkdir Resources
|
2011-01-07 10:30:17 +01:00
|
|
|
|
|
|
|
cd "$TOP"
|
|
|
|
while read name newname; do
|
|
|
|
[ -z "$name" ] && continue
|
2011-01-19 05:16:24 +01:00
|
|
|
: "${newname:=$name}"
|
|
|
|
outname=$1.app/Contents/Resources/$newname
|
2011-01-07 10:30:17 +01:00
|
|
|
outdir=$(dirname "$outname")
|
|
|
|
[ -d "$outdir" ] || mkdir "$outdir"
|
2011-01-19 05:16:24 +01:00
|
|
|
cp "${name-$newname}" "$outname"
|
2011-01-07 10:30:17 +01:00
|
|
|
done <sources.list
|
|
|
|
|
|
|
|
cd "$1.app"
|
|
|
|
redo-ifchange $(find . -type f)
|