-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_osx.clean.command
executable file
·51 lines (40 loc) · 1.08 KB
/
_osx.clean.command
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/sh
# change to working directory to location of command file: http://hints.macworld.com/article.php?story=20041217111834902
here="`dirname \"$0\"`"
cd "$here" || exit 1
rm basic
rm clrbar
rm cubepro
rm render
rm tex
rm mtext
#remove Cocoa as widgetset
sed -i.bak '/BuildModes Active="MacOS"/d' ./basic.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./clrbar.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./cubepro.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./render.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./tex.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./mtext.lps
rm *.~*
rm DS_STORE
rm *.dsm
rm *.bak
rm -rf lib
rm -rf backup
cd legacy
rm basicLegacy
rm clrbarLegacy
rm cubeLegacy
rm texLegacy
rm textmLegacy
sed -i.bak '/BuildModes Active="MacOS"/d' ./basicLegacy.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./clrbarLegacy.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./cubeLegacy.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./texLegacy.lps
sed -i.bak '/BuildModes Active="MacOS"/d' ./textmLegacy.lps
rm *.~*
rm DS_STORE
rm *.dsm
rm *.bak
rm -rf lib
rm -rf backup