Skip to content

Commit 0380af6

Browse files
authored
Update gen_ag_interface_template (#117)
1 parent 4abe59b commit 0380af6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ DerivedData/
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
88
.netrc
99
coverage.txt
10-
TODO.md
10+
TODO.md
11+
template.swiftinterface

Scripts/gen_ag_interface_template.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ cd $OPENGRAPH_ROOT
1515
# Copy to template file
1616
cp .build/debug/OpenGraph.build/OpenGraph.swiftinterface ./template.swiftinterface
1717

18-
# Process the template file
19-
# 1. Remove the first 5 lines
20-
# 2. Remove all references of "OpenGraph_SPI."
21-
# 3. Replace all references of "OpenGraph" to "AttributeGraph"
22-
# 4. Replace all references of "OG" to "AG"
2318
sed -i '' '1,5d' ./template.swiftinterface
19+
sed -i '' '1i\
20+
@_exported public import AttributeGraph
21+
' ./template.swiftinterface
2422
sed -i '' 's/OpenGraph_SPI\.//g' ./template.swiftinterface
2523
sed -i '' 's/OpenGraph/AttributeGraph/g' ./template.swiftinterface
2624
sed -i '' 's/OG/AG/g' ./template.swiftinterface

0 commit comments

Comments
 (0)