Commit 301879f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbb: add --target ARCH support

parent bb9d5feb
......@@ -22,7 +22,7 @@ fi
#############################
Usage="Usage: rpmbb [-c -p -i -r -R] [spec]"
Usage="Usage: rpmbb [--target BUILDARCH] [-c -p -i -r -R] [spec]"
function mygetopts()
{
Descr="rpmbb (Build Binary) - build binary rpm from spec or from git"
......@@ -47,6 +47,12 @@ fi
echog " -d build with dmake"
}
# first hack
if [ "$1" = "--target" ] ; then
BUILDARCH="$2"
shift 2
fi
while getopts :hciprRd opt; do
case $opt in
h) phelp; exit 0;;
......
......@@ -30,7 +30,7 @@
#BUILDROOT=
# Default arch for 32-bit packages (x86_64 will used for 64-bit packages)
#DEFAULTARCH=i586
#BUILDARCH=i586
# Default ~/RPM path
#RPMDIR=$HOME/RPM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment