File: build-ppc

package info (click to toggle)
puredata 0.55.2%2Bds-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 20,336 kB
  • sloc: ansic: 118,788; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (49 lines) | stat: -rwxr-xr-x 924 bytes parent folder | download | duplicates (4)
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
#!/bin/sh
#usage: ./build 0.38-0 or 0.38-0test4

if test x$1 == x
then
   echo usage: ./build 0.38-0 or 0.38-0test4
   exit 1
fi

if test -f pd-$1.src.tar.gz
then
   echo -n
else
   echo can not find file pd-$1.src.tar.gz
   exit 1
fi

if test -d Pd-$1-ppc.app
then
    chmod -R 777 Pd-$1-ppc.app
    rm -rf Pd-$1-ppc.app
fi

tar xzf stuff/wish-shell.tgz
mv "Wish Shell.app" Pd-$1-ppc.app
cd Pd-$1-ppc.app/Contents
rm -f Info.plist
cp -p  ../../stuff/Info.plist .
cd MacOS
mv "Wish Shell" Pd
cd ..
cd Resources
rm -f Wish.icns
cp -p ../../../stuff/pd.icns ../../../stuff/pd-file.icns .
mv "Wish Shell.rsrc" Pd.rsrc
tar xzf ../../../pd-$1.src.tar.gz
mv pd-$1/* .
rmdir pd-$1
cd src
mkdir ../obj ../bin
JACK=true make -f makefile.mac "ARCH=-arch ppc" "EXTRAARCH=-arch ppc" \
    EXTERNTYPE=d_ppc
cd ..
ln -s tcl Scripts
cd ../../..
pwd
chmod -R u+w Pd-$1-ppc.app
touch Pd-$1-ppc.app
tar czf pd-$1-ppc.mac.tar.gz Pd-$1-ppc.app