Skip to content

Commit 44b6186

Browse files
authored
toJson scripts added (#8264)
1 parent 24d166e commit 44b6186

File tree

4 files changed

+76
-1
lines changed

4 files changed

+76
-1
lines changed

scripts/apothecary

Submodule apothecary updated 176 files

scripts/templates/ios/toJson.command

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
cd "$(dirname "$0")"
3+
4+
checkLib() {
5+
for lib in "$@"
6+
do
7+
if ! command -v $lib 2>&1 >/dev/null
8+
then
9+
echo "<$lib> not found, installing via brew"
10+
executa brew install $lib
11+
else
12+
echo "$lib ok"
13+
fi
14+
done
15+
}
16+
17+
checkLib jq
18+
19+
plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
20+
cd ./emptyExample.xcodeproj
21+
mv project.pbxproj p.pbxproj
22+
jq --tab . p.pbxproj > project.pbxproj
23+
rm p.pbxproj
24+
25+
echo "OF XCode template conversion to JSON complete"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
cd "$(dirname "$0")"
3+
4+
checkLib() {
5+
for lib in "$@"
6+
do
7+
if ! command -v $lib 2>&1 >/dev/null
8+
then
9+
echo "<$lib> not found, installing via brew"
10+
executa brew install $lib
11+
else
12+
echo "$lib ok"
13+
fi
14+
done
15+
}
16+
17+
checkLib jq
18+
19+
plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
20+
cd ./emptyExample.xcodeproj
21+
mv project.pbxproj p.pbxproj
22+
jq --tab . p.pbxproj > project.pbxproj
23+
rm p.pbxproj
24+
25+
echo "OF XCode template conversion to JSON complete"

scripts/templates/osx/toJson.command

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
cd "$(dirname "$0")"
3+
4+
checkLib() {
5+
for lib in "$@"
6+
do
7+
if ! command -v $lib 2>&1 >/dev/null
8+
then
9+
echo "<$lib> not found, installing via brew"
10+
executa brew install $lib
11+
else
12+
echo "$lib ok"
13+
fi
14+
done
15+
}
16+
17+
checkLib jq
18+
19+
plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
20+
cd ./emptyExample.xcodeproj
21+
mv project.pbxproj p.pbxproj
22+
jq --tab . p.pbxproj > project.pbxproj
23+
rm p.pbxproj
24+
25+
echo "OF XCode template conversion to JSON complete"

0 commit comments

Comments
 (0)