functions: rename abuild_ver to program_version

This commit is contained in:
Natanael Copa 2013-10-25 07:26:05 +00:00
parent 1822f3f624
commit 4757588caf
8 changed files with 17 additions and 17 deletions

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -89,7 +89,7 @@ do_keygen() {
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - generate signing keys $program $program_version - generate signing keys
Usage: $program [-a|--append] [-i|--install] [-n] Usage: $program [-a|--append] [-i|--install] [-n]
Options: Options:
-a, --append Set PACKAGER_PRIVKEY=<generated key> in $ABUILD_USERCONF -a, --append Set PACKAGER_PRIVKEY=<generated key> in $ABUILD_USERCONF

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -44,7 +44,7 @@ do_sign() {
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - sign indexes $program $program_version - sign indexes
Usage: $program [-k PRIVKEY] [-p PUBKEY] INDEXFILE... Usage: $program [-k PRIVKEY] [-p PUBKEY] INDEXFILE...
Options: Options:
-k, --private KEY The private key to use for signing -k, --private KEY The private key to use for signing

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
abuildrepo_base=@abuildrepo@ abuildrepo_base=@abuildrepo@
datadir=@datadir@ datadir=@datadir@
@ -759,7 +759,7 @@ prepare_metafiles() {
# parch="noarch" # parch="noarch"
# fi # fi
echo "# Generated by $(basename $0) $abuild_ver" >"$pkginfo" echo "# Generated by $(basename $0) $program_version" >"$pkginfo"
if [ -n "$FAKEROOTKEY" ]; then if [ -n "$FAKEROOTKEY" ]; then
echo "# using $($FAKEROOT -v)" >> "$pkginfo" echo "# using $($FAKEROOT -v)" >> "$pkginfo"
fi fi
@ -1819,7 +1819,7 @@ snapshot() {
} }
usage() { usage() {
echo "$program $abuild_ver" echo "$program $program_version"
echo "usage: $program [options] [-i PKG] [-P REPODEST] [-p PKGDEST]" echo "usage: $program [options] [-i PKG] [-P REPODEST] [-p PKGDEST]"
echo " [-s SRCDEST] [cmd] ..." echo " [-s SRCDEST] [cmd] ..."
echo " $program [-c] -n PKGNAME[-PKGVER]" echo " $program [-c] -n PKGNAME[-PKGVER]"

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -81,7 +81,7 @@ fixes #${fixes#\#}
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - bump pkgver in APKBUILDs $program $program_version - bump pkgver in APKBUILDs
Usage: $program [-s CVE-1,CVE-2,...] [-f ISSUE] [-R|--recursive] [-k|--keep] PKGNAME-1.2.3 ... Usage: $program [-s CVE-1,CVE-2,...] [-f ISSUE] [-R|--recursive] [-k|--keep] PKGNAME-1.2.3 ...
Options: Options:
-s, --security CVE1,CVE-2,... Security update -s, --security CVE1,CVE-2,... Security update

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -74,7 +74,7 @@ do_nothing() {
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - display or bump pkgrel in APKBUILDs $program $program_version - display or bump pkgrel in APKBUILDs
Usage: $program [-z|--zero] [-a|--add] [-g|--clean-git] [-s|--set NUM] [-t|--test] [-f|--force] DIR or APKBUILD... Usage: $program [-z|--zero] [-a|--add] [-g|--clean-git] [-s|--set NUM] [-t|--test] [-f|--force] DIR or APKBUILD...
Options: Options:
-z, --zero Set pkgrel to 0 -z, --zero Set pkgrel to 0

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
abuild_ver=@VERSION@ program_version=@VERSION@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
abuildrepo=/var/lib/buildlab/result abuildrepo=/var/lib/buildlab/result
datadir=@datadir@ datadir=@datadir@
@ -221,7 +221,7 @@ build_package() {
} }
usage() { usage() {
echo "buildlab $abuild_ver" echo "buildlab $program_version"
echo " " echo " "
echo "Common options:" echo "Common options:"
echo " " echo " "

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -18,7 +18,7 @@ fi
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - find ABI breakages in package upgrades $program $program_version - find ABI breakages in package upgrades
Usage: $program Usage: $program
Run in the directory of a built package. Run in the directory of a built package.

View File

@ -6,7 +6,7 @@
# Distributed under GPL-2 # Distributed under GPL-2
# #
abuild_ver=@VERSION@ program_version=@VERSION@
datadir=@datadir@ datadir=@datadir@
if ! [ -f "$datadir/functions.sh" ]; then if ! [ -f "$datadir/functions.sh" ]; then
@ -257,7 +257,7 @@ __EOF__
usage() { usage() {
cat >&2 <<__EOF__ cat >&2 <<__EOF__
$program $abuild_ver - generate a new APKBUILD $program $program_version - generate a new APKBUILD
Usage: $program [-cfh] [-d DESC] [-l LICENSE] [-n NAME] [-u URL] PKGNAME[-PKGVER]|SRCURL Usage: $program [-cfh] [-d DESC] [-l LICENSE] [-n NAME] [-u URL] PKGNAME[-PKGVER]|SRCURL
Options: Options:
-n Set package name to NAME -n Set package name to NAME