summaryrefslogtreecommitdiffstats
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2011-09-17 14:51:58 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-10-07 21:53:03 +0200
commit004ced2a33c06985d88b424d88facb0d8b1bdd27 (patch)
tree63e3ce74fd99106202bd24882bf0eabbec6893de /makechrootpkg.in
parent733668f4ccb42aba30b17811f3c9a1091de64cc2 (diff)
downloaddevtools-004ced2a33c06985d88b424d88facb0d8b1bdd27.tar.gz
devtools-004ced2a33c06985d88b424d88facb0d8b1bdd27.tar.xz
makechrootpkg: Eliminate appname, only used once
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 6e1e37e..5538e95 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -16,14 +16,13 @@ clean_first=false
install_pkg=
add_to_db=false
chrootdir=
-appname=${0##*/}
default_copy=$USER
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
[[ -z $default_copy || $default_copy = root ]] && default_copy=copy
usage() {
- echo "usage $appname [options] -r <chrootdir> [--] [makepkg args]"
+ echo "usage ${0##*/} [options] -r <chrootdir> [--] [makepkg args]"
echo ' Run this script in a PKGBUILD dir to build a package inside a'
echo ' clean chroot. All unrecognized arguments passed to this script'
echo ' will be passed to makepkg.'