abuild: use cat <<EOF instead of tons of echo for help text
no code changes
This commit is contained in:
parent
9842fbe437
commit
febda24d52
88
abuild.in
88
abuild.in
@ -1886,49 +1886,51 @@ snapshot() {
|
|||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "$program $program_version"
|
echo "$program $program_version"
|
||||||
echo "usage: $program [options] [-i PKG] [-P REPODEST] [-p PKGDEST]"
|
cat << EOF
|
||||||
echo " [-s SRCDEST] [cmd] ..."
|
usage: $program [options] [-i PKG] [-P REPODEST] [-p PKGDEST]
|
||||||
echo " $program [-c] -n PKGNAME[-PKGVER]"
|
[-s SRCDEST] [cmd] ...
|
||||||
echo "Options:"
|
$program [-c] -n PKGNAME[-PKGVER]
|
||||||
echo " -A Print CARCH and exit"
|
Options:
|
||||||
echo " -c Enable colored output"
|
-A Print CARCH and exit
|
||||||
echo " -d Disable dependency checking"
|
-c Enable colored output
|
||||||
echo " -f Force specified cmd, even if they are already done"
|
-d Disable dependency checking
|
||||||
echo " -F Force run as root"
|
-f Force specified cmd, even if they are already done
|
||||||
echo " -h Show this help"
|
-F Force run as root
|
||||||
echo " -i Install PKG after successful build"
|
-h Show this help
|
||||||
echo " -k Keep built packages, even if APKBUILD or sources are newer"
|
-i Install PKG after successful build
|
||||||
echo " -m Disable colors (monochrome)"
|
-k Keep built packages, even if APKBUILD or sources are newer
|
||||||
echo " -p Set package destination directory"
|
-m Disable colors (monochrome)
|
||||||
echo " -P Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name"
|
-p Set package destination directory
|
||||||
echo " -q Quiet"
|
-P Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name
|
||||||
echo " -r Install missing dependencies from system repository (using sudo)"
|
-q Quiet
|
||||||
echo " -R Recursively build and install missing dependencies (using sudo)"
|
-r Install missing dependencies from system repository (using sudo)
|
||||||
echo " -s Set source package destination directory"
|
-R Recursively build and install missing dependencies (using sudo)
|
||||||
echo " -u Recursively build and upgrade all dependencies (using sudo)"
|
-s Set source package destination directory
|
||||||
echo ""
|
-u Recursively build and upgrade all dependencies (using sudo)
|
||||||
echo "Commands:"
|
|
||||||
echo " checksum Generate checksum to be included in APKBUILD"
|
Commands:
|
||||||
echo " fetch Fetch sources to \$SRCDEST and verify checksums"
|
checksum Generate checksum to be included in APKBUILD
|
||||||
echo " sanitycheck Basic sanity check of APKBUILD"
|
fetch Fetch sources to \$SRCDEST and verify checksums
|
||||||
echo " verify Verify checksums"
|
sanitycheck Basic sanity check of APKBUILD
|
||||||
echo " unpack Unpack sources to \$srcdir"
|
verify Verify checksums
|
||||||
echo " prepare Apply patches"
|
unpack Unpack sources to \$srcdir
|
||||||
echo " build Compile and install package into \$pkgdir"
|
prepare Apply patches
|
||||||
echo " listpkg List target packages"
|
build Compile and install package into \$pkgdir
|
||||||
echo " package Create package in \$PKGDEST"
|
listpkg List target packages
|
||||||
echo " rootpkg Run 'package', the split functions and create apks as fakeroot"
|
package Create package in \$PKGDEST
|
||||||
echo " clean Remove temp build and install dirs"
|
rootpkg Run 'package', the split functions and create apks as fakeroot
|
||||||
echo " cleanoldpkg Remove binary packages except current version"
|
clean Remove temp build and install dirs
|
||||||
echo " cleanpkg Remove already built binary and source package"
|
cleanoldpkg Remove binary packages except current version
|
||||||
echo " cleancache Remove downloaded files from \$SRCDEST"
|
cleanpkg Remove already built binary and source package
|
||||||
echo " srcpkg Make a source package"
|
cleancache Remove downloaded files from \$SRCDEST
|
||||||
echo " sourcecheck Check if remote source package exists upstream"
|
srcpkg Make a source package
|
||||||
echo " up2date Compare target and sources dates"
|
sourcecheck Check if remote source package exists upstream
|
||||||
echo " deps Install packages listed in makedepends and depends"
|
up2date Compare target and sources dates
|
||||||
echo " undeps Uninstall packages listed in makedepends and depends"
|
deps Install packages listed in makedepends and depends
|
||||||
echo " snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl"
|
undeps Uninstall packages listed in makedepends and depends
|
||||||
echo ""
|
snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl
|
||||||
|
|
||||||
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user