From 206df56bc34fe60e2041240cc5e0d62b0befd71a Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Wed, 1 Jun 2011 02:43:03 -0500 Subject: libremakepkg pass long opts to makepkg --- libremakepkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libremakepkg') diff --git a/libremakepkg b/libremakepkg index 8af1581..c045ef1 100755 --- a/libremakepkg +++ b/libremakepkg @@ -32,6 +32,7 @@ function usage { echo " -c : cleans CHCOPY before building." echo " -u : updates CHROOT before building." echo " -n : use this dir instead of CHCOPY." + echo " -M \"makepkg long args\" : passes long args to makepkg" echo " -I pkgname : install this package, use it as many times needed." echo } @@ -41,8 +42,9 @@ CLEAN_CACHE="" update_first="n" chrootname=${CHCOPY} _PKGINSTALL="" +_MAKEPKG_ARGS="" #libremakepkg own args -libremakepkgargs='hcun:I:' +libremakepkgargs='hcun:I:M:' #now makepkg args libremakepkgargs+='ACdefiLmop:rRs' @@ -53,7 +55,8 @@ while getopts ${libremakepkgargs} arg ; do u) update_first="y" ;; n) chrootname="$OPTARG"; echo $chrootname ;; I) _PKGINSTALL+="-I $OPTARG " ;; - *) _MAKEPKG_ARGS="$MAKEPKG_ARGS -$arg $OPTARG" ;; + M) _MAKEPKG_ARGS+=" $OPTARG" ;; + *) _MAKEPKG_ARGS+=" -$arg $OPTARG" ;; esac done -- cgit v1.2.2