Commit c3e36fee authored by Vitaly Lipatov's avatar Vitaly Lipatov

clean up helps for all commands

parent bd56ce32
...@@ -8,10 +8,13 @@ ...@@ -8,10 +8,13 @@
load_mod gettext load_mod gettext
if [ "$1" = "-h" ]; then if [ "$1" = "-h" ]; then
echog "aptU [-v] [-l] - update package and all it requires" echog "aptU - update package and all it requires"
echog "Usage: aptU [package(s)]" echo
echog " -v - verbose" echog "Usage: aptU [-v] [-l] [package(s)]"
echog " -l - print list of required packages" echo
echog "Options:"
echog " -v verbose"
echog " -l print list of required packages"
exit 0 exit 0
fi fi
......
...@@ -13,16 +13,26 @@ mygetopts() ...@@ -13,16 +13,26 @@ mygetopts()
if [ "$1" = "-h" ] ; then if [ "$1" = "-h" ] ; then
echog "gacl - acl control for gear repo in $GIRARHOST" echog "gacl - acl control for gear repo in $GIRARHOST"
echog "Use: gacl [GIRAR] [-$CURRENTBRANCHNAME] | [-b REPONAME] [package] command [params]" echo
echog "Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]"
echo
echog "Options:" echog "Options:"
echog " -b REPONAME - binary repository name (4.1, 5.0, 5.1 and so on)" echog " GIRAR git.alt or git.eter"
echog " -b REPONAME binary repository name (4.1, p5, 5.1 and so on) (sisyphus by default)"
echo
echog "Commands:"
echog " add USER add new user to ACL list for package"
echog " del USER del user from ACL list for package"
echog " show show current ACL list"
echo
echog "Examples:" echog "Examples:"
echog " gacl [-$CURRENTBRANCHNAME] package add newuser" echog " gacl package add newuser"
echog " gacl [-$CURRENTBRANCHNAME] package del newuser" echog " gacl package del newuser"
echog " gacl [-$CURRENTBRANCHNAME] package show" echog " gacl -b p6 package show"
echog "Examples for current git project:" echo
echog " gacl [-$CURRENTBRANCHNAME] add newuser" echog "Examples for git project from current dir:"
echog " gacl [-$CURRENTBRANCHNAME] show" echog " gacl add newuser"
echog " gacl -b p6 show"
exit 0 exit 0
fi fi
......
...@@ -5,16 +5,19 @@ ...@@ -5,16 +5,19 @@
load_mod git load_mod git
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "gpull - do git pull --rebase" echo "gpull - do git pull with fast forward only by default."
echo "Use: gpull [-a] [-n] [repo] [branch]" echo
echo " gpull without parameters or with branch name" echo "Usage: gpull [-a] [-n] [repo] [branch]"
echo " gpull myrepo - for pull from remote myrepo gear repo (with --rebase by default)" echo
echo "gpull without parameters or with branch name"
echo "gpull myrepo - for pull from remote myrepo gear repo (with --rebase by default)"
echo
echo "Options:" echo "Options:"
echo " -a - pull all branches" echo " -a pull all branches"
echo " -r - rebase during pull" echo " -r rebase during pull"
echo " -m - do merge if possible" echo " -m do merge if possible"
echo " -f - pull with fast forward only (default)" echo " -f pull with fast forward only (default)"
echo " -c - return error status if repo was not uptodate (gpull || echo 'Was updated last time')" echo " -c return error status if repo was not uptodate (gpull || echo 'Was updated last time')"
exit 1 exit 1
fi fi
......
...@@ -7,13 +7,14 @@ load_mod git ...@@ -7,13 +7,14 @@ load_mod git
set_girar_host $1 && shift set_girar_host $1 && shift
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "grpmbs - multi repo rpmbs analogue (build packages via girar)" echog "grpmbs - multi repo rpmbs analogue (build packages via girar)"
echo "Run in dir contains subdirs" echog "Run in dir contains subdirs"
echo "Use: grpmbs [GIRAR] [-a|-u] [-f] package1... package2..." echog "Usage: grpmbs [GIRAR] [-a|-u] [-f] package1... package2..."
echo "Options:" echo
echo " -a - build all packages in one task" echog "Options:"
echo " -u - build packages separately (one package per task)" echog " -a build all packages in one task"
echo " -f - force set tags (see rpmbs)" echog " -u build packages separately (one package per task)"
echog " -f force set tags (see rpmbs)"
exit 1 exit 1
fi fi
......
...@@ -8,7 +8,7 @@ set_girar_host $1 && shift ...@@ -8,7 +8,7 @@ set_girar_host $1 && shift
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "grpmbsh - multi repo rpmbsh analogue (build packages in hasher)" echo "grpmbsh - multi repo rpmbsh analogue (build packages in hasher)"
echo "Use: grpmbs [GIRAR] package1... package2..." echo "Usage: grpmbs [GIRAR] package1... package2..."
# FIXME: concatenate grpmbsh and grpmbs # FIXME: concatenate grpmbsh and grpmbs
#echo "Options:" #echo "Options:"
#echo " -a - build all packages in one task" #echo " -a - build all packages in one task"
...@@ -19,7 +19,7 @@ fi ...@@ -19,7 +19,7 @@ fi
for i in "$@" ; do for i in "$@" ; do
cd $i || fatal "Run in dir, contains '$i' directory." docmd cd $i || fatal "Please run in dir with '$i' subdirectory."
rpmbsh $GIRARHOST || fatal docmd rpmbsh $GIRARHOST || fatal
cd - cd -
done done
...@@ -28,16 +28,18 @@ phelp() ...@@ -28,16 +28,18 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo
echog "Options:" echog "Options:"
echog " -i - initialize hasher" echog " -i initialize hasher"
echog " -c - cleanup hasher" echog " -c cleanup hasher"
echog " -o - log in as root user" echog " -o log in as root user"
echog " -v - verbose" echog " -v verbose"
echog " -t - use test hasher dir (different to build hasher)" echog " -t use test hasher dir (different to build hasher)"
echog " -M?? - branch name" echog " -M?? branch name"
echo
echog "Extra options:" echog "Extra options:"
echog " -a - auto test mode for post myhsh build checking" echog " -a auto test mode for post myhsh build checking"
echog " -r - remote login to hasher" echog " -r remote login to hasher"
} }
while getopts :chitoav opt; do while getopts :chitoav opt; do
......
...@@ -23,10 +23,11 @@ phelp() ...@@ -23,10 +23,11 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo
echog "Options:" echog "Options:"
echog " -i - install built packages in test hasher" echog " -i install built packages in test hasher"
echog " -c - build without stuff (without previous built packages)" echog " -c build without stuff (without previous built packages)"
echog " -l - lazy cleanup (before build, not after)" echog " -l lazy cleanup (before build, not after)"
} }
......
...@@ -32,13 +32,15 @@ phelp() ...@@ -32,13 +32,15 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo
echog "Options:" echog "Options:"
echog " -i - skip build, but do install and package" echog " -i skip build, but do install and package"
echog " -r - find build requires" echog " -r find build requires"
echog " -R - find build requires with -bi" echog " -R find build requires with -bi"
echo
echog "Ext. options:" echog "Ext. options:"
echog " -c - start from compile stage" echog " -c start from compile stage"
echog " -p - packaging installed files into package" echog " -p packaging installed files into package"
} }
while getopts :hciprR opt; do while getopts :hciprR opt; do
......
...@@ -42,22 +42,24 @@ phelp() ...@@ -42,22 +42,24 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo
echog "Options:" echog "Options:"
echog " -u - sign and run gear build task after build" echog " -u sign and run gear build task after build"
echog " -a TASK - sign package(s)/repo, push/upload it and add to (shared) task TASK" echog " -a TASK sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog " -p POCKET - build package in POCKET (supported on git.etersoft.ru only)" echog " -p POCKET build package in POCKET (supported on git.etersoft.ru only)"
echog "Korinf options:" echo
#echog "Korinf options:"
#echog " -k [TARGET] - generate src.rpm and publish to TARGET dir (from Source: by default)" #echog " -k [TARGET] - generate src.rpm and publish to TARGET dir (from Source: by default)"
#echog " -r [RELEASE] - publish to RELEASE target dir version" #echog " -r [RELEASE] - publish to RELEASE target dir version"
echog "Ext. options:" echog "Ext. options:"
echog " -b REPONAME - binary repository name (4.1, 5.0, 5.1 and so on)" echog " -b REPONAME binary repository name (4.1, 5.0, 5.1 and so on)"
echog " -c - only sign package(s) with checking" echog " -c only sign package(s) with checking"
echog " -f - force operation (overwrite tag)" echog " -f force operation (overwrite tag)"
echog " -s - sign package(s) (and move it to dir ETERDESTSRPM if defined)" echog " -s sign package(s) (and move it to dir ETERDESTSRPM if defined)"
echog " -t - set tag with sign" echog " -t set tag with sign"
echog " -n - do not check with sisyphus_check before upload" echog " -n do not check with sisyphus_check before upload"
echog " -o - create nosrc.rpm package" echog " -o create nosrc.rpm package"
echog " -z - create src.rpm with compatible gzip compression" echog " -z create src.rpm with compatible gzip compression"
# echog " -U - sign package(s) and upload it to Incoming (updates)" # echog " -U - sign package(s) and upload it to Incoming (updates)"
# echog " -d - remove package(s) from SRPMS and Incoming" # echog " -d - remove package(s) from SRPMS and Incoming"
} }
......
...@@ -26,16 +26,18 @@ phelp() ...@@ -26,16 +26,18 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo
echog "Options:" echog "Options:"
echog " -r - remote build (on $BUILDSERVER host)" echog " -r remote build (on $BUILDSERVER host)"
echog " -u - sign and run gear build task after build" echog " -u sign and run gear build task after build"
echog " -i - install built packages in test hasher (via loginhsh -t)" echog " -i install built packages in test hasher (via loginhsh -t)"
echo
echog "Ext. options:" echog "Ext. options:"
echog " -c - build without stuff (previous built packages)" echog " -c build without stuff (previous built packages)"
echog " -s - sign (and move to dir ETERDESTSRPM if defined) after build" echog " -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog " -t - make temporary commit before build (rpmbb like behavior)" echog " -t make temporary commit before build (rpmbb like behavior)"
echog " -l - lazy cleanup (clean before build, not after)" echog " -l lazy cleanup (clean before build, not after)"
echog " -f - force tag set (see rpmbs --help)" echog " -f force tag set (see rpmbs --help)"
} }
while getopts :hrulsimt opt; do while getopts :hrulsimt opt; do
......
...@@ -148,9 +148,10 @@ phelp() ...@@ -148,9 +148,10 @@ phelp()
# TODO: improve description # TODO: improve description
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echog "Options:"
echog " pkgname - installed package name or src.rpm" echog " pkgname - installed package name or src.rpm"
echog " system - name of system (ALT Linux by default if -a missed)" echog " system - name of system (ALT Linux by default if -a missed)"
echo
echog "Options:"
echog " -a search pkgname in all known repositories" echog " -a search pkgname in all known repositories"
echog " -c check if this package exists in the ALT Linux repository" echog " -c check if this package exists in the ALT Linux repository"
echog " -d download all matched packages" echog " -d download all matched packages"
...@@ -158,6 +159,7 @@ phelp() ...@@ -158,6 +159,7 @@ phelp()
echog " -gp clone last built package repo via public access" echog " -gp clone last built package repo via public access"
echog " -gm remote clone repo to USER/packages and clone it locally" echog " -gm remote clone repo to USER/packages and clone it locally"
echog " -m migrate to gear from spec/srpm" echog " -m migrate to gear from spec/srpm"
echo
echog "Ext. options:" echog "Ext. options:"
echog " -b install packages needed for build (use sudo apt-get) (need spec not package name)" echog " -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog " -l list packages needed for build (in local pkg system notation) (experimental)" echog " -l list packages needed for build (in local pkg system notation) (experimental)"
......
...@@ -31,9 +31,10 @@ phelp() ...@@ -31,9 +31,10 @@ phelp()
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echog "You can run 'rpmgs file.spec new_version' for set new version and download it" echog "You can run 'rpmgs file.spec new_version' for set new version and download it"
echo
echog "Options:" echog "Options:"
echog " -a - get all source (not only Source|Source0)" echog " -a get all source (not only Source|Source0)"
echog " -f - force download (remove source before download)" echog " -f force download (remove source before download)"
} }
while getopts :haf opt; do while getopts :haf opt; do
......
...@@ -12,12 +12,13 @@ load_mod spec rpm git etersoft ...@@ -12,12 +12,13 @@ load_mod spec rpm git etersoft
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmlog - update changelog" echog "rpmlog - update changelog"
echog "Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [TAG]" echog "Usage: rpmlog [-r|-s|-v] [-l|-t] [SPEC] [TAG]"
echo
echog "Options:" echog "Options:"
echog " -v - increment version" echog " -v increment version"
echog " -r - increment release" echog " -r increment release"
echog " -s - increment subrelease" echog " -s increment subrelease"
echog " -l - add changelog from git log (since last release tag or TAG)" echog " -l add changelog from git log (since last release tag or TAG)"
echog " -t - test run (without change files and repo)" echog " -t test run (without change files and repo)"
exit 0 exit 0
fi fi
......
...@@ -14,12 +14,13 @@ load_mod spec rpm etersoft ...@@ -14,12 +14,13 @@ load_mod spec rpm etersoft
if [ "$1" = "-h" ]; then if [ "$1" = "-h" ]; then
echog "rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm" echog "rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog "Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]" echog "Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echo
echog "Options:" echog "Options:"
echog " -f - force set tag" echog " -f force set tag"
echog " -r PROJECTVERSION - set other project version (PROJECTVERSION/sources)" echog " -r PROJECTVERSION set other project version (PROJECTVERSION/sources)"
echog " TARGETDIR - copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)" echog " TARGETDIR copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog "By default used path from Source: spec field. " echog " By default used path from Source: spec field. "
echog "You can set default target dir in ETERDESTDIR variable." echog " Also you can set default target dir in ETERDESTDIR variable."
exit 0 exit 0
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment