summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-20 15:16:48 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-23 00:09:06 +0200
commit948fedc5f7d1c57a5cc172778818c38ed97d134d (patch)
tree22312603ea7c1a37738db7b9f3969a46740afffd /abuild.in
parente8508f7b187ad23ff6b52dfbe0db0ac9d8e18fdf (diff)
downloadabuild-948fedc5f7d1c57a5cc172778818c38ed97d134d.tar.gz
abuild-948fedc5f7d1c57a5cc172778818c38ed97d134d.tar.bz2
abuild-948fedc5f7d1c57a5cc172778818c38ed97d134d.tar.xz
abuild-948fedc5f7d1c57a5cc172778818c38ed97d134d.zip
indent heredocs when possible
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in120
1 files changed, 60 insertions, 60 deletions
diff --git a/abuild.in b/abuild.in
index f60d624..5dd0423 100644
--- a/abuild.in
+++ b/abuild.in
@@ -827,17 +827,17 @@ prepare_metafiles() {
echo "# using $($FAKEROOT -v)" >> "$pkginfo"
fi
echo "# $(date -u)" >> "$pkginfo"
- cat >> "$pkginfo" <<EOF
-pkgname = $name
-pkgver = $pkgver-r$pkgrel
-pkgdesc = $pkgdesc
-url = $url
-builddate = $builddate
-packager = ${PACKAGER:-"Unknown"}
-size = $size
-arch = ${subpkgarch:-$pkgarch}
-origin = $pkgname
-EOF
+ cat >> "$pkginfo" <<-EOF
+ pkgname = $name
+ pkgver = $pkgver-r$pkgrel
+ pkgdesc = $pkgdesc
+ url = $url
+ builddate = $builddate
+ packager = ${PACKAGER:-"Unknown"}
+ size = $size
+ arch = ${subpkgarch:-$pkgarch}
+ origin = $pkgname
+ EOF
local i deps
deps="$depends"
if [ "$pkgname" != "busybox" ] && ! depends_has busybox; then
@@ -2133,55 +2133,55 @@ snapshot() {
usage() {
echo "$program $program_version"
- cat << EOF
-usage: $program [options] [-P REPODEST] [-s SRCDEST] [cmd] ...
- $program [-c] -n PKGNAME[-PKGVER]
-Options:
- -A Print CARCH and exit
- -c Enable colored output
- -d Disable dependency checking
- -f Force specified cmd, even if they are already done
- -F Force run as root
- -h Show this help
- -i Install PKG after successful build
- -k Keep built packages, even if APKBUILD or sources are newer
- -K Keep buildtime temp dirs and files (srcdir/pkgdir/deps)
- -m Disable colors (monochrome)
- -P Set REPODEST as the repository location for created packages
- -q Quiet
- -r Install missing dependencies from system repository (using sudo)
- -R Recursively build and install missing dependencies (using sudo)
- -s Set source package destination directory
- -u Recursively build and upgrade all dependencies (using sudo)
-
-Commands:
- build Compile and install package into \$pkgdir
- checksum Generate checksum to be included in APKBUILD
- clean Remove temp build and install dirs
- cleancache Remove downloaded files from \$SRCDEST
- cleanoldpkg Remove binary packages except current version
- cleanpkg Remove already built binary and source package
- deps Install packages listed in makedepends and depends
- fetch Fetch sources to \$SRCDEST and verify checksums
- index Regenerate indexes in \$REPODEST
- listpkg List target packages
- package Create package in \$REPODEST
- prepare Apply patches
- rootpkg Run 'package', the split functions and create apks as fakeroot
- sanitycheck Basic sanity check of APKBUILD
- snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl
- sourcecheck Check if remote source package exists upstream
- srcpkg Make a source package
- undeps Uninstall packages listed in makedepends and depends
- unpack Unpack sources to \$srcdir
- up2date Compare target and sources dates
- verify Verify checksums
-
-To activate cross compilation specify in environment:
- CHOST Arch or hostspec of machine to generate packages for
- CTARGET Arch or hostspec of machine to generate compiler for
-
-EOF
+ cat <<-EOF
+ usage: $program [options] [-P REPODEST] [-s SRCDEST] [cmd] ...
+ $program [-c] -n PKGNAME[-PKGVER]
+ Options:
+ -A Print CARCH and exit
+ -c Enable colored output
+ -d Disable dependency checking
+ -f Force specified cmd, even if they are already done
+ -F Force run as root
+ -h Show this help
+ -i Install PKG after successful build
+ -k Keep built packages, even if APKBUILD or sources are newer
+ -K Keep buildtime temp dirs and files (srcdir/pkgdir/deps)
+ -m Disable colors (monochrome)
+ -P Set REPODEST as the repository location for created packages
+ -q Quiet
+ -r Install missing dependencies from system repository (using sudo)
+ -R Recursively build and install missing dependencies (using sudo)
+ -s Set source package destination directory
+ -u Recursively build and upgrade all dependencies (using sudo)
+
+ Commands:
+ build Compile and install package into \$pkgdir
+ checksum Generate checksum to be included in APKBUILD
+ clean Remove temp build and install dirs
+ cleancache Remove downloaded files from \$SRCDEST
+ cleanoldpkg Remove binary packages except current version
+ cleanpkg Remove already built binary and source package
+ deps Install packages listed in makedepends and depends
+ fetch Fetch sources to \$SRCDEST and verify checksums
+ index Regenerate indexes in \$REPODEST
+ listpkg List target packages
+ package Create package in \$REPODEST
+ prepare Apply patches
+ rootpkg Run 'package', the split functions and create apks as fakeroot
+ sanitycheck Basic sanity check of APKBUILD
+ snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl
+ sourcecheck Check if remote source package exists upstream
+ srcpkg Make a source package
+ undeps Uninstall packages listed in makedepends and depends
+ unpack Unpack sources to \$srcdir
+ up2date Compare target and sources dates
+ verify Verify checksums
+
+ To activate cross compilation specify in environment:
+ CHOST Arch or hostspec of machine to generate packages for
+ CTARGET Arch or hostspec of machine to generate compiler for
+
+ EOF
exit 0
}