Skip to content

Commit a4a75b5

Browse files
authored
Update gen_ag_interface_template.sh (#120)
1 parent e84c42b commit a4a75b5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Scripts/gen_ag_interface_template.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ OPENGRAPH_ROOT="$(dirname $(dirname $(filepath $0)))"
99

1010
cd $OPENGRAPH_ROOT
1111

12-
# Build the swiftinterface file
13-
./Scripts/build_swiftinterface.sh
12+
swift build -c release -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution -Xswiftc -no-verify-emitted-module-interface -Xswiftc -package-name -Xswiftc OpenGraph -Xswiftc -Osize
1413

15-
# Copy to template file
16-
cp .build/debug/OpenGraph.build/OpenGraph.swiftinterface ./template.swiftinterface
14+
cp .build/release/Modules/OpenGraph.swiftinterface ./template.swiftinterface
1715

18-
sed -i '' '1,5d' ./template.swiftinterface
19-
sed -i '' '1i\
20-
@_exported public import AttributeGraph
21-
' ./template.swiftinterface
16+
sed -i '' '1,4d' ./template.swiftinterface
17+
sed -i '' 's/@_exported public import AttributeGraph/@_exported public import OpenGraph_SPI/g' ./template.swiftinterface
2218
sed -i '' 's/OpenGraph_SPI\.//g' ./template.swiftinterface
2319
sed -i '' 's/OpenGraph/AttributeGraph/g' ./template.swiftinterface
2420
sed -i '' 's/OG/AG/g' ./template.swiftinterface

0 commit comments

Comments
 (0)