Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
coverage.txt
TODO.md
TODO.md
template.swiftinterface
8 changes: 3 additions & 5 deletions Scripts/gen_ag_interface_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ cd $OPENGRAPH_ROOT
# Copy to template file
cp .build/debug/OpenGraph.build/OpenGraph.swiftinterface ./template.swiftinterface

# Process the template file
# 1. Remove the first 5 lines
# 2. Remove all references of "OpenGraph_SPI."
# 3. Replace all references of "OpenGraph" to "AttributeGraph"
# 4. Replace all references of "OG" to "AG"
sed -i '' '1,5d' ./template.swiftinterface
sed -i '' '1i\
@_exported public import AttributeGraph
' ./template.swiftinterface
sed -i '' 's/OpenGraph_SPI\.//g' ./template.swiftinterface
sed -i '' 's/OpenGraph/AttributeGraph/g' ./template.swiftinterface
sed -i '' 's/OG/AG/g' ./template.swiftinterface
Expand Down