summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-05-16 10:40:45 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-05-16 10:40:45 -0500
commit3b059a61e44fe0670b210b2f85ab1185c3102138 (patch)
treefa2855d18165dea189295980206585af7f6c381b /libremakepkg
parent1b59d6008a5a47969f3395ac7d68e1c0c22dcf43 (diff)
libremakepkg to accept makepkg options
Diffstat (limited to 'libremakepkg')
-rwxr-xr-xlibremakepkg10
1 files changed, 7 insertions, 3 deletions
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