Enable gitlab CI to build debian packages

This commit is contained in:
anon8675309
2021-05-23 01:45:07 -05:00
parent eb387b5453
commit b2391e952f
2 changed files with 32 additions and 3 deletions

View File

@@ -58,6 +58,14 @@ case $i in
PACKAGE_VERSION="${i#*=}"
shift
;;
-x=*|--debbuild-extra=*)
DEBBUILD_EXTRA="${i#*=}"
shift
;;
--dput=*)
DPUT="${i#*=}"
shift
;;
--default)
DEFAULT=YES
shift # past argument with no value
@@ -306,9 +314,11 @@ EOF
if [ "$DEBSIGN_KEYID" != "" ]; then
DEBUILD="$DEBUILD -k$DEBSIGN_KEYID"
fi
# Add any extra options specified on the CLI
DEBUILD="$DEBUILD $DEBBUILD_EXTRA"
eval $DEBUILD
if [ $? -ne 0 ]; then
echo "Error status code is: $?"
echo "Error status code is: $?"
echo "Build failed.";
exit $?;
fi;
@@ -344,8 +354,10 @@ EOF
dput $PPA $SC
fi;
else
echo "dputting to $PPA";
dput $PPA $SC
if [ "$DPUT" != "no" ]; then
echo "dputting to $PPA";
dput $PPA $SC
fi;
fi;
fi;
done; # foreach distro