diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-09-09 03:48:39 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-09-09 03:53:04 +0300 |
commit | 5ec89b5f35056f15a40f72a51a4a12e629282f94 (patch) | |
tree | 25bdbf1b518af3c3eb6f4541d701e0dbf037103b /src | |
parent | 764941e90643fd5dee65a579c21df0d10a57eab4 (diff) |
Add $EX_USAGE
Diffstat (limited to 'src')
-rwxr-xr-x | src/share/poudriere/bulk.sh | 2 | ||||
-rw-r--r-- | src/share/poudriere/common.sh | 1 | ||||
-rwxr-xr-x | src/share/poudriere/daemon.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/distclean.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/foreachport.sh | 2 | ||||
-rw-r--r-- | src/share/poudriere/image.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/jail.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/logclean.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/options.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/pkgclean.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/ports.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/queue.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/status.sh | 2 | ||||
-rwxr-xr-x | src/share/poudriere/testport.sh | 2 |
14 files changed, 14 insertions, 13 deletions
diff --git a/src/share/poudriere/bulk.sh b/src/share/poudriere/bulk.sh index 5e93b983..4310292f 100755 --- a/src/share/poudriere/bulk.sh +++ b/src/share/poudriere/bulk.sh @@ -74,7 +74,7 @@ Options: -w -- Save WRKDIR on failed builds -z set -- Specify which SET to use EOF - exit 1 + exit ${EX_USAGE} } bulk_cleanup() { diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 657c3179..7fea724b 100644 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -28,6 +28,7 @@ BSDPLATFORM=`uname -s | tr '[:upper:]' '[:lower:]'` . ${SCRIPTPREFIX}/include/common.sh.${BSDPLATFORM} +EX_USAGE=64 EX_DATAERR=65 EX_SOFTWARE=70 SHFLAGS="$-" diff --git a/src/share/poudriere/daemon.sh b/src/share/poudriere/daemon.sh index 28c399a7..b5897339 100755 --- a/src/share/poudriere/daemon.sh +++ b/src/share/poudriere/daemon.sh @@ -34,7 +34,7 @@ Options: -p -- Override the pidfile location -k -- Kill the running daemon EOF - exit 1 + exit ${EX_USAGE} } queue_reader_main() { diff --git a/src/share/poudriere/distclean.sh b/src/share/poudriere/distclean.sh index 8a64a368..3ae60521 100755 --- a/src/share/poudriere/distclean.sh +++ b/src/share/poudriere/distclean.sh @@ -46,7 +46,7 @@ Options: debug output -y -- Assume yes when deleting and do not prompt for confirmation EOF - exit 1 + exit ${EX_USAGE} } DRY_RUN=0 diff --git a/src/share/poudriere/foreachport.sh b/src/share/poudriere/foreachport.sh index d8d353da..94897119 100755 --- a/src/share/poudriere/foreachport.sh +++ b/src/share/poudriere/foreachport.sh @@ -43,7 +43,7 @@ Options: debug output -z set -- Specify which SET to use for packages EOF - exit 1 + exit ${EX_USAGE} } PTNAME=default diff --git a/src/share/poudriere/image.sh b/src/share/poudriere/image.sh index 007fb780..b1830292 100644 --- a/src/share/poudriere/image.sh +++ b/src/share/poudriere/image.sh @@ -62,7 +62,7 @@ Options: -X excludefile -- File containing the list in cpdup format -z set -- Set EOF - exit 1 + exit ${EX_USAGE} } delete_image() { diff --git a/src/share/poudriere/jail.sh b/src/share/poudriere/jail.sh index 48403274..b473ff81 100755 --- a/src/share/poudriere/jail.sh +++ b/src/share/poudriere/jail.sh @@ -83,7 +83,7 @@ Options for -s and -k: -p tree -- Specify which ports tree to start/stop the jail with. -z set -- Specify which SET the jail to start/stop with. EOF - exit 1 + exit ${EX_USAGE} } list_jail() { diff --git a/src/share/poudriere/logclean.sh b/src/share/poudriere/logclean.sh index 95bc2afa..e27e478d 100755 --- a/src/share/poudriere/logclean.sh +++ b/src/share/poudriere/logclean.sh @@ -47,7 +47,7 @@ Options: -z set -- Specify which SET to match for logs. Use '0' to only match on empty sets. EOF - exit 1 + exit ${EX_USAGE} } BUILDNAME_GLOB="*" diff --git a/src/share/poudriere/options.sh b/src/share/poudriere/options.sh index 6a9d657c..d1928150 100755 --- a/src/share/poudriere/options.sh +++ b/src/share/poudriere/options.sh @@ -46,7 +46,7 @@ Options: -s -- Show port options instead of configuring them -z set -- Specify which SET to use EOF - exit 1 + exit ${EX_USAGE} } ARCH= diff --git a/src/share/poudriere/pkgclean.sh b/src/share/poudriere/pkgclean.sh index b383f836..c509b50a 100755 --- a/src/share/poudriere/pkgclean.sh +++ b/src/share/poudriere/pkgclean.sh @@ -49,7 +49,7 @@ Options: -y -- Assume yes when deleting and do not confirm -z set -- Specify which SET to use for packages EOF - exit 1 + exit ${EX_USAGE} } PTNAME=default diff --git a/src/share/poudriere/ports.sh b/src/share/poudriere/ports.sh index a7b4e4a0..18c8d0df 100755 --- a/src/share/poudriere/ports.sh +++ b/src/share/poudriere/ports.sh @@ -63,7 +63,7 @@ Options: -q -- When used with -l, remove the header in the list view. -v -- Show more verbose output. EOF - exit 1 + exit ${EX_USAGE} } FAKE=0 diff --git a/src/share/poudriere/queue.sh b/src/share/poudriere/queue.sh index c3a72d89..12ec26fe 100755 --- a/src/share/poudriere/queue.sh +++ b/src/share/poudriere/queue.sh @@ -27,7 +27,7 @@ usage() { echo "poudriere queue poudriere_command" - exit 1 + exit ${EX_USAGE} } . ${SCRIPTPREFIX}/common.sh diff --git a/src/share/poudriere/status.sh b/src/share/poudriere/status.sh index 15a853d8..fedc29c6 100755 --- a/src/share/poudriere/status.sh +++ b/src/share/poudriere/status.sh @@ -45,7 +45,7 @@ Options: -z set -- Specify which SET to match for the build. Use '0' to only match on empty sets. EOF - exit 1 + exit ${EX_USAGE} } PTNAME= diff --git a/src/share/poudriere/testport.sh b/src/share/poudriere/testport.sh index 1b0dffaf..c3541c65 100755 --- a/src/share/poudriere/testport.sh +++ b/src/share/poudriere/testport.sh @@ -67,7 +67,7 @@ Options: -w -- Save WRKDIR on failed builds -z set -- Specify which SET to use EOF - exit 1 + exit ${EX_USAGE} } CONFIGSTR=0 |