Merge branch 'master' of github.com:connortechnology/ZoneMinder

This commit is contained in:
Isaac Connor 2019-06-25 16:32:38 -04:00
commit c290170878
1 changed files with 20 additions and 16 deletions

View File

@ -30,6 +30,10 @@ case $i in
INTERACTIVE="${i#*=}"
shift # past argument=value
;;
-p=*|--ppa=*)
PPA="${i#*=}"
shift # past argument=value
;;
-r=*|--release=*)
RELEASE="${i#*=}"
shift
@ -120,20 +124,21 @@ else
fi;
fi
PPA="";
if [ "$RELEASE" != "" ]; then
# We need to use our official tarball for the original source, so grab it and overwrite our generated one.
IFS='.' read -r -a VERSION <<< "$RELEASE"
if [ "${VERSION[0]}.${VERSION[1]}" == "1.30" ]; then
PPA="ppa:iconnor/zoneminder-stable"
if [ "$PPA" == "" ]; then
if [ "$RELEASE" != "" ]; then
# We need to use our official tarball for the original source, so grab it and overwrite our generated one.
IFS='.' read -r -a VERSION <<< "$RELEASE"
if [ "${VERSION[0]}.${VERSION[1]}" == "1.30" ]; then
PPA="ppa:iconnor/zoneminder-stable"
else
PPA="ppa:iconnor/zoneminder-${VERSION[0]}.${VERSION[1]}"
fi;
else
PPA="ppa:iconnor/zoneminder-${VERSION[0]}.${VERSION[1]}"
fi;
else
if [ "$BRANCH" == "" ]; then
PPA="ppa:iconnor/zoneminder-master";
else
PPA="ppa:iconnor/zoneminder-$BRANCH";
if [ "$BRANCH" == "" ]; then
PPA="ppa:iconnor/zoneminder-master";
else
PPA="ppa:iconnor/zoneminder-$BRANCH";
fi;
fi;
fi;
@ -327,7 +332,8 @@ EOF
dput $PPA $SC
fi;
else
dput $PPA $SC
echo "dputting to $PPA";
dput $PPA $SC
fi;
fi;
done; # foreach distro
@ -339,5 +345,3 @@ if [ "$INTERACTIVE" != "no" ]; then
else
rm -fr "$DIRECTORY.orig"; echo "The checked out copy has been deleted";
fi