aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-11-14 18:49:37 +0000
committermerakor <cem@ckyln.com>2022-11-14 18:49:37 +0000
commit5b82fd0d1f92d34628ec10121cc33dd488bb2d89 (patch)
tree289146360a687b8c1c8246613c8519be259fc25b /src
parentc2cc574d44c3d46e736dac9d82a91013dc44a6bd (diff)
downloadcpt-5b82fd0d1f92d34628ec10121cc33dd488bb2d89.tar.gz
cpt-build: add -d and -S options for CPT_DEBUG and CPT_NOSTRIP
FossilOrigin-Name: bd610e5954071f29f14fe39707863f3f5316b1c4885da8ba9945abb2a63bec84
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt-build7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cpt-build b/src/cpt-build
index 03a33b7..eaf8849 100755
--- a/src/cpt-build
+++ b/src/cpt-build
@@ -2,9 +2,12 @@
# Build a package
parser_definition() {
- setup REST help:usage -- "usage: ${0##*/} [-tfy] [--root ROOT] [pkg...]"
+ setup REST help:usage -- "usage: ${0##*/} [-dfSty] [--root ROOT] [pkg...]"
msg -- '' 'Options:'
- flag CPT_TEST -t --test export:1 init:@export -- "Run tests (if they exist)"
+ flag CPT_DEBUG -d --debug export:1 init:@export -- "Keep the build directories after operation"
+ flag CPT_TEST -t --test export:1 init:@export -- "Run tests (if they exist)"
+ flag CPT_NOSTRIP -S --nostrip export:1 init:@export -- "Don't strip debug information from the binaries" \
+ "(might want to add '-g' to your '\$CFLAGS')"
global_options
}