From 3b059a61e44fe0670b210b2f85ab1185c3102138 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Mon, 16 May 2011 10:40:45 -0500 Subject: libremakepkg to accept makepkg options --- libremakepkg | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libremakepkg') diff --git a/libremakepkg b/libremakepkg index 272e61d..54a5578 100755 --- a/libremakepkg +++ b/libremakepkg @@ -41,7 +41,12 @@ CLEAN_CACHE="" update_first="n" chrootname=${CHCOPY} _PKGINSTALL="" -while getopts 'hcun:I:' arg; do +#libremakepkg own args +libremakepkgargs='hcun:I:' +#now makepkg args +libremakepkgargs+='ACdefiLmoprRs' + +while getopts ${libremakepkgargs} arg ; do case "${arg}" in h) usage; exit 0 ;; c) _CLEAN="-c" ;; @@ -73,7 +78,6 @@ fi msg "Creating the package" -makechrootpkg $_CLEAN -r ${CHROOTDIR} -l "${chrootname}" $_PKGINSTALL \ - -- $_MAKEPKG_ARGS +makechrootpkg $_CLEAN -r ${CHROOTDIR} -l "${chrootname}" $_PKGINSTALL -- $_MAKEPKG_ARGS exit 0 -- cgit v1.2.3-54-g00ecf