forked from iFixit/iFixit-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dozuki.sh
executable file
·22 lines (21 loc) · 1.04 KB
/
dozuki.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
if [ "$1" == "off" ]; then
echo "iFixit"
cp Graphics/Sites/iFixit/*png .
sed -i '.bak' -e 's/com.ifixit.dozuki/com.ifixit.ifixit/g' iFixit-Info.plist
sed -i '.bak' -e 's/Dozuki/iFixit/g' iFixit-Info.plist
sed -i '.bak' -e 's/>dozuki</>ifixit</g' iFixit-Info.plist
sed -i '.bak' -e 's/\[Config currentConfig\].dozuki = YES;/\[Config currentConfig\].dozuki = NO;/' Classes/iFixitAppDelegate.m
elif [ "$1" == "make" ]; then
echo "Make"
cp Graphics/Sites/Make/*png .
# Need to manually fix up iFixit-Info.plist
sed -i '.bak' -e 's/\[Config currentConfig\].dozuki = YES;/\[Config currentConfig\].dozuki = NO;/' Classes/iFixitAppDelegate.m
else
echo "Dozuki"
cp Graphics/Sites/Dozuki/*png .
sed -i '.bak' -e 's/com.ifixit.ifixit/com.ifixit.dozuki/g' iFixit-Info.plist
sed -i '.bak' -e 's/iFixit/Dozuki/g' iFixit-Info.plist
sed -i '.bak' -e 's/>ifixit</>dozuki</g' iFixit-Info.plist
sed -i '.bak' -e 's/\[Config currentConfig\].dozuki = NO;/\[Config currentConfig\].dozuki = YES;/' Classes/iFixitAppDelegate.m
fi