diff --git a/Utils/change.sh b/Utils/change.sh new file mode 100755 index 00000000..26e03cb2 --- /dev/null +++ b/Utils/change.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +BASEDIR=$(dirname "$0") +$BASEDIR/gyb --line-directive '' -o $BASEDIR/../Source/Device.generated.swift $BASEDIR/../Source/Device.swift.gyb diff --git a/Utils/watch.sh b/Utils/watch.sh new file mode 100755 index 00000000..e8a7224c --- /dev/null +++ b/Utils/watch.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +BASEDIR=$(dirname "$0") + +# brew install fswatch +fswatch $BASEDIR/../Source/Device.swift.gyb | xargs -n1 -I{} $BASEDIR/change.sh