Skip to content

Commit cec7806

Browse files
committed
Add gyb code generator
1 parent c057641 commit cec7806

File tree

4 files changed

+1283
-0
lines changed

4 files changed

+1283
-0
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ xcuserdata/
66
DerivedData/
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
88
/.vscode
9+
*.pyc

Diff for: generate.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# This script compiles all .gyb files in the Sources directory
4+
5+
find Sources -name '*.gyb' | \
6+
while read file; do \
7+
./gyb/gyb --line-directive '' -o "${file%.gyb}" "$file"; \
8+
done

Diff for: gyb/gyb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env python2.7
2+
import gyb
3+
gyb.main()

0 commit comments

Comments
 (0)