-
Notifications
You must be signed in to change notification settings - Fork 78
/
macrelease.sh
executable file
·155 lines (152 loc) · 5.26 KB
/
macrelease.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#!/bin/bash
if [ -d "libusb-mac" ]; then
echo "Found directory of libusb-mac"
else
echo "You need to be in the root ziphone source directory to run this script!"
exit 1
fi
rm -rf ziphone-3.6-cli-mac*
cd libusb-mac
rm -rf /usr/local/
rm -rf /usr/local/bin/
rm -rf /usr/local/bin/i386-apple-darwin9.6.0-pkg-config
rm -rf /usr/local/bin/libusb-config
rm -rf /usr/local/bin/pkg-config
rm -rf /usr/local/include/
rm -rf /usr/local/include/libusb-1.0/
rm -rf /usr/local/include/libusb-1.0/libusb.h
rm -rf /usr/local/include/usb.h
rm -rf /usr/local/lib/
rm -rf /usr/local/lib/libusb-0.1.4.dylib
rm -rf /usr/local/lib/libusb-1.0.0.dylib
rm -rf /usr/local/lib/libusb-1.0.a
rm -rf /usr/local/lib/libusb-1.0.dylib
rm -rf /usr/local/lib/libusb-1.0.la
rm -rf /usr/local/lib/libusb.a
rm -rf /usr/local/lib/libusb.dylib
rm -rf /usr/local/lib/libusb.la
rm -rf /usr/local/lib/pkgconfig/
rm -rf /usr/local/lib/pkgconfig/libusb-1.0.pc
rm -rf /usr/local/lib/pkgconfig/libusb.pc
rm -rf /usr/local/share/
rm -rf /usr/local/share/acrm -rf /usr/local/
rm -rf /usr/local/share/acrm -rf /usr/local/pkg.m4
rm -rf /usr/local/share/doc/
rm -rf /usr/local/share/doc/pkg-config/
rm -rf /usr/local/share/doc/pkg-config/pkg-config-guide.html
rm -rf /usr/local/share/man/
rm -rf /usr/local/share/man/man1/
rm -rf /usr/local/share/man/man1/pkg-config.1
tar -jxvf libusb-1.0.22-libusb-compat-0.1.7-pkg-config-0.29.2-intel-32.tar.bz2 -C /usr
cd ../
make -f Makefile.macintel32
./macgui.sh
tar -jcvf ziphone-3.6-gui-mac-intel-32.tar.bz2 ZiPhoneOSX.app
rm -rf ZiPhoneOSX.app
cd libusb-mac
rm -rf /usr/local/
rm -rf /usr/local/bin/
rm -rf /usr/local/bin/i386-apple-darwin9.6.0-pkg-config
rm -rf /usr/local/bin/libusb-config
rm -rf /usr/local/bin/pkg-config
rm -rf /usr/local/include/
rm -rf /usr/local/include/libusb-1.0/
rm -rf /usr/local/include/libusb-1.0/libusb.h
rm -rf /usr/local/include/usb.h
rm -rf /usr/local/lib/
rm -rf /usr/local/lib/libusb-0.1.4.dylib
rm -rf /usr/local/lib/libusb-1.0.0.dylib
rm -rf /usr/local/lib/libusb-1.0.a
rm -rf /usr/local/lib/libusb-1.0.dylib
rm -rf /usr/local/lib/libusb-1.0.la
rm -rf /usr/local/lib/libusb.a
rm -rf /usr/local/lib/libusb.dylib
rm -rf /usr/local/lib/libusb.la
rm -rf /usr/local/lib/pkgconfig/
rm -rf /usr/local/lib/pkgconfig/libusb-1.0.pc
rm -rf /usr/local/lib/pkgconfig/libusb.pc
rm -rf /usr/local/share/
rm -rf /usr/local/share/acrm -rf /usr/local/
rm -rf /usr/local/share/acrm -rf /usr/local/pkg.m4
rm -rf /usr/local/share/doc/
rm -rf /usr/local/share/doc/pkg-config/
rm -rf /usr/local/share/doc/pkg-config/pkg-config-guide.html
rm -rf /usr/local/share/man/
rm -rf /usr/local/share/man/man1/
rm -rf /usr/local/share/man/man1/pkg-config.1
tar -jxvf libusb-1.0.22-libusb-compat-0.1.7-pkg-config-0.29.2-intel-64.tar.bz2 -C /usr
cd ../
make -f Makefile.macintel64
./macgui.sh
tar -jcvf ziphone-3.6-gui-mac-intel-64.tar.bz2 ZiPhoneOSX.app
rm -rf ZiPhoneOSX.app
cd libusb-mac
rm -rf /usr/local/
rm -rf /usr/local/bin/
rm -rf /usr/local/bin/i386-apple-darwin9.6.0-pkg-config
rm -rf /usr/local/bin/libusb-config
rm -rf /usr/local/bin/pkg-config
rm -rf /usr/local/include/
rm -rf /usr/local/include/libusb-1.0/
rm -rf /usr/local/include/libusb-1.0/libusb.h
rm -rf /usr/local/include/usb.h
rm -rf /usr/local/lib/
rm -rf /usr/local/lib/libusb-0.1.4.dylib
rm -rf /usr/local/lib/libusb-1.0.0.dylib
rm -rf /usr/local/lib/libusb-1.0.a
rm -rf /usr/local/lib/libusb-1.0.dylib
rm -rf /usr/local/lib/libusb-1.0.la
rm -rf /usr/local/lib/libusb.a
rm -rf /usr/local/lib/libusb.dylib
rm -rf /usr/local/lib/libusb.la
rm -rf /usr/local/lib/pkgconfig/
rm -rf /usr/local/lib/pkgconfig/libusb-1.0.pc
rm -rf /usr/local/lib/pkgconfig/libusb.pc
rm -rf /usr/local/share/
rm -rf /usr/local/share/acrm -rf /usr/local/
rm -rf /usr/local/share/acrm -rf /usr/local/pkg.m4
rm -rf /usr/local/share/doc/
rm -rf /usr/local/share/doc/pkg-config/
rm -rf /usr/local/share/doc/pkg-config/pkg-config-guide.html
rm -rf /usr/local/share/man/
rm -rf /usr/local/share/man/man1/
rm -rf /usr/local/share/man/man1/pkg-config.1
tar -jxvf libusb-1.0.22-libusb-compat-0.1.7-pkg-config-0.29.2-ppc-32.tar.bz2 -C /usr
cd ../
make -f Makefile.macppc
./macgui.sh
tar -jcvf ziphone-3.6-gui-mac-ppc-32.tar.bz2 ZiPhoneOSX.app
rm -rf ZiPhoneOSX.app
rm -rf /usr/local/
rm -rf /usr/local/bin/
rm -rf /usr/local/bin/i386-apple-darwin9.6.0-pkg-config
rm -rf /usr/local/bin/libusb-config
rm -rf /usr/local/bin/pkg-config
rm -rf /usr/local/include/
rm -rf /usr/local/include/libusb-1.0/
rm -rf /usr/local/include/libusb-1.0/libusb.h
rm -rf /usr/local/include/usb.h
rm -rf /usr/local/lib/
rm -rf /usr/local/lib/libusb-0.1.4.dylib
rm -rf /usr/local/lib/libusb-1.0.0.dylib
rm -rf /usr/local/lib/libusb-1.0.a
rm -rf /usr/local/lib/libusb-1.0.dylib
rm -rf /usr/local/lib/libusb-1.0.la
rm -rf /usr/local/lib/libusb.a
rm -rf /usr/local/lib/libusb.dylib
rm -rf /usr/local/lib/libusb.la
rm -rf /usr/local/lib/pkgconfig/
rm -rf /usr/local/lib/pkgconfig/libusb-1.0.pc
rm -rf /usr/local/lib/pkgconfig/libusb.pc
rm -rf /usr/local/share/
rm -rf /usr/local/share/acrm -rf /usr/local/
rm -rf /usr/local/share/acrm -rf /usr/local/pkg.m4
rm -rf /usr/local/share/doc/
rm -rf /usr/local/share/doc/pkg-config/
rm -rf /usr/local/share/doc/pkg-config/pkg-config-guide.html
rm -rf /usr/local/share/man/
rm -rf /usr/local/share/man/man1/
rm -rf /usr/local/share/man/man1/pkg-config.1
rm -rf ZiPhoneOSX.app
rm -rf ziphone-3.6-cli-mac
echo "Done."