Change makechrootpkg -i arg to -I
This way we don't conflict with makepkg's -i, which could be useful to us Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
dd45bbcaf3
commit
623acfaa9e
|
@ -23,7 +23,7 @@ APPNAME=$(basename "${0}")
|
||||||
|
|
||||||
usage ()
|
usage ()
|
||||||
{
|
{
|
||||||
echo "usage ${APPNAME} [-hcui] [-r CHROOT_SHELL] [--] [makepkg args]"
|
echo "usage ${APPNAME} [-hcuI] [-r CHROOT_SHELL] [--] [makepkg args]"
|
||||||
echo " Run this script in a PKGBUILD dir to build a package inside a"
|
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 " clean chroot. All unrecognized arguments passed to this script"
|
||||||
echo " will be passed to makepkg."
|
echo " will be passed to makepkg."
|
||||||
|
@ -48,14 +48,14 @@ usage ()
|
||||||
echo "-u Update the rw layer of the chroot before building"
|
echo "-u Update the rw layer of the chroot before building"
|
||||||
echo " This is useful for rebuilds without dirtying the pristine"
|
echo " This is useful for rebuilds without dirtying the pristine"
|
||||||
echo " chroot"
|
echo " chroot"
|
||||||
echo "-i <pkg> Install a package into the rw layer of the chroot"
|
echo "-I <pkg> Install a package into the rw layer of the chroot"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts ':r:i:h:cu' arg; do
|
while getopts ':r:I:h:cu' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
r) chrootdir="$OPTARG" ;;
|
r) chrootdir="$OPTARG" ;;
|
||||||
i) install_pkg="$OPTARG" ;;
|
I) install_pkg="$OPTARG" ;;
|
||||||
u) update_first=1 ;;
|
u) update_first=1 ;;
|
||||||
c) clean_first=1 ;;
|
c) clean_first=1 ;;
|
||||||
h|?) usage ;;
|
h|?) usage ;;
|
||||||
|
|
Loading…
Reference in New Issue