Add --help and --snapshot options.
This commit is contained in:
parent
228b083edf
commit
2a714d4e8e
1 changed files with 22 additions and 0 deletions
22
make-dist
22
make-dist
|
@ -74,6 +74,28 @@ while [ $# -gt 0 ]; do
|
|||
"--compress")
|
||||
default_gzip="compress"
|
||||
;;
|
||||
|
||||
"--snapshot")
|
||||
clean_up=yes
|
||||
make_tar=yes
|
||||
update=no
|
||||
check=no
|
||||
;;
|
||||
|
||||
"--help")
|
||||
echo "Usage: ${progname} [options]"
|
||||
echo ""
|
||||
echo " --clean-up delete staging directories when done"
|
||||
echo " --compress use compress instead of gzip"
|
||||
echo " --newer=TIME don't include files older than TIME"
|
||||
echo " --no-check don't check for bad file names etc."
|
||||
echo " --no-update don't recompile or do analogous things"
|
||||
echo " --snapshot same as --clean-up --no-update --tar --no-check"
|
||||
echo " --tar make a tar file"
|
||||
echo ""
|
||||
exit 0
|
||||
;;
|
||||
|
||||
* )
|
||||
echo "${progname}: Unrecognized argument: $1" >&2
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue