Add support for specifying PPA
This commit is contained in:
parent
9a353d0b6d
commit
7914583a9e
|
@ -30,6 +30,10 @@ case $i in
|
||||||
INTERACTIVE="${i#*=}"
|
INTERACTIVE="${i#*=}"
|
||||||
shift # past argument=value
|
shift # past argument=value
|
||||||
;;
|
;;
|
||||||
|
-p=*|--ppa=*)
|
||||||
|
PPA="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
-r=*|--release=*)
|
-r=*|--release=*)
|
||||||
RELEASE="${i#*=}"
|
RELEASE="${i#*=}"
|
||||||
shift
|
shift
|
||||||
|
@ -120,20 +124,21 @@ else
|
||||||
fi;
|
fi;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PPA="";
|
if [ "$PPA" == "" ]; then
|
||||||
if [ "$RELEASE" != "" ]; then
|
if [ "$RELEASE" != "" ]; then
|
||||||
# We need to use our official tarball for the original source, so grab it and overwrite our generated one.
|
# 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"
|
IFS='.' read -r -a VERSION <<< "$RELEASE"
|
||||||
if [ "${VERSION[0]}.${VERSION[1]}" == "1.30" ]; then
|
if [ "${VERSION[0]}.${VERSION[1]}" == "1.30" ]; then
|
||||||
PPA="ppa:iconnor/zoneminder-stable"
|
PPA="ppa:iconnor/zoneminder-stable"
|
||||||
|
else
|
||||||
|
PPA="ppa:iconnor/zoneminder-${VERSION[0]}.${VERSION[1]}"
|
||||||
|
fi;
|
||||||
else
|
else
|
||||||
PPA="ppa:iconnor/zoneminder-${VERSION[0]}.${VERSION[1]}"
|
if [ "$BRANCH" == "" ]; then
|
||||||
fi;
|
PPA="ppa:iconnor/zoneminder-master";
|
||||||
else
|
else
|
||||||
if [ "$BRANCH" == "" ]; then
|
PPA="ppa:iconnor/zoneminder-$BRANCH";
|
||||||
PPA="ppa:iconnor/zoneminder-master";
|
fi;
|
||||||
else
|
|
||||||
PPA="ppa:iconnor/zoneminder-$BRANCH";
|
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
@ -327,6 +332,7 @@ EOF
|
||||||
dput $PPA $SC
|
dput $PPA $SC
|
||||||
fi;
|
fi;
|
||||||
else
|
else
|
||||||
|
echo "dputting to $PPA";
|
||||||
dput $PPA $SC
|
dput $PPA $SC
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in New Issue