Skip to content

Commit ef37e3d

Browse files
committed
generate.sh: change the default for cmd help as it gets regenerated pretty often
1 parent 7f361ab commit ef37e3d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build-debug.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
cd "$(dirname "$0")"
33
source ./script/setup.sh
44

5-
./generate.sh --ignore-xcodeproj
5+
# It takes 300ms for script to complete. It's too long to run in build-debug.sh
6+
./generate.sh --ignore-xcodeproj --ignore-cmd-help
67
swift build
78
swift build --target AppBundleTests # swift build doesn't build test targets by default :(
89

generate.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ source ./script/setup.sh
55
export XCODEGEN_AEROSPACE_CODE_SIGN_IDENTITY="aerospace-codesign-certificate"
66
build_version="0.0.0-SNAPSHOT"
77
generate_xcodeproj=1
8+
generate_cmd_help=1
89
all=0
910
while test $# -gt 0; do
1011
case $1 in
1112
--build-version) build_version="$2"; shift 2 ;;
1213
--codesign-identity) XCODEGEN_AEROSPACE_CODE_SIGN_IDENTITY="$2"; shift 2 ;;
14+
--ignore-cmd-help) generate_cmd_help=0; shift 1 ;;
1315
--ignore-xcodeproj) generate_xcodeproj=0; shift 1 ;;
1416
--all) all=1; shift 1 ;;
1517
*) echo "Unknown option $1"; exit 1 ;;
@@ -24,8 +26,10 @@ fi
2426
if test $all = 1; then
2527
# Grammar is not expected to change very often, that's why it's not regenerated by default
2628
./generate-shell-parser.sh
29+
fi
2730

28-
# It takes 300ms for script to complete. It's too long to run in build-debug.sh
31+
if test $generate_cmd_help = 1; then
32+
# It takes 300ms for the script to complete
2933
./script/generate-cmd-help.sh
3034
fi
3135

0 commit comments

Comments
 (0)