summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 19:42:08 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 19:42:08 -0500
commit6dd807e109d491458b26d76602ad344b4c025475 (patch)
tree3fbaa8354f942cae290822107ad2a16ef6ce9362 /src/chroot-tools/libremakepkg
parent259c05c47fc43875415d5ecab9666a46fb4b6d76 (diff)
teach libremakepkg "-m" to use a different command than "makepkg"v20121128.1
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index d661714..b6c84c1 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -117,12 +117,14 @@ usage() {
echo 'This script will build your package in a chroot.'
echo ''
echo 'OPTIONS:'
- echo ' -h Show this message'
+ echo " -n <CHROOT> Use this chroot instead of \`$CHROOT'"
+ echo ' -l <COPY> Use this chroot copy instead of basing it'
+ echo ' on the username'
echo ''
+ echo " -m <MAKEPKG> Use the command MAKEPKG instead of 'makepkg'"
echo " -R Repackage"
- echo " -n <chroot> Use this chroot instead of \`$CHROOT'"
- echo ' -l <copy> Use this chroot copy instead of basing it'
- echo ' on the username'
+ echo ''
+ echo ' -h Show this message'
}
main() {
@@ -130,14 +132,17 @@ main() {
CHROOTCOPY=$LIBREUSER
[[ $CHROOTCOPY != root ]] || CHROOTCOPY=copy
+
makepkg_args=(-s --noconfirm -L)
REPACKAGE=false
+ MAKEPKG=makepkg
- while getopts 'hRn:l:' arg ; do
+ while getopts 'n:l:m:Rh' arg ; do
case "${arg}" in
n) CHROOT=$OPTARG;;
l) CHROOTCOPY=$OPTARG;;
- R) REPACKAGE=true; makepkg_args+=(-R) ;;
+ m) MAKEPKG=$OPTARG;;
+ R) REPACKAGE=true; makepkg_args+=(-R);;
h) usage; exit 0;;
*) usage; exit 1;;
esac