Merge branch 'update_do_debian_release' into storageareas
This commit is contained in:
commit
f16fdb8b21
|
@ -8,18 +8,48 @@ exit;
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for i in "$@"
|
||||||
|
do
|
||||||
|
case $i in
|
||||||
|
-b=*|--branch=*)
|
||||||
|
BRANCH="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
-d=*|--distro=*)
|
||||||
|
DISTRO="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
-i=*|--interactive=*)
|
||||||
|
INTERACTIVE="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
-s=*|--snapshot=*)
|
||||||
|
SNAPSHOT="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
-t=*|--type=*)
|
||||||
|
TYPE="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
-f=*|--fork=*)
|
||||||
|
GITHUB_FORK="${i#*=}"
|
||||||
|
shift # past argument=value
|
||||||
|
;;
|
||||||
|
--default)
|
||||||
|
DEFAULT=YES
|
||||||
|
shift # past argument with no value
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# unknown option
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
DATE=`date -R`
|
DATE=`date -R`
|
||||||
DISTRO=$1
|
|
||||||
SNAPSHOT=$2
|
|
||||||
|
|
||||||
TYPE=$3
|
|
||||||
if [ "$TYPE" == "" ]; then
|
if [ "$TYPE" == "" ]; then
|
||||||
echo "Defaulting to source build"
|
echo "Defaulting to source build"
|
||||||
TYPE="source";
|
TYPE="source";
|
||||||
fi;
|
fi;
|
||||||
BRANCH=$4
|
|
||||||
GITHUB_FORK=$5
|
|
||||||
if [ "$GITHUB_FORK" == "" ]; then
|
if [ "$GITHUB_FORK" == "" ]; then
|
||||||
echo "Defaulting to ZoneMinder upstream git"
|
echo "Defaulting to ZoneMinder upstream git"
|
||||||
GITHUB_FORK="ZoneMinder"
|
GITHUB_FORK="ZoneMinder"
|
||||||
|
@ -139,16 +169,22 @@ fi
|
||||||
$DEBUILD
|
$DEBUILD
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
if [ "$INTERACTIVE" != "no" ]; then
|
||||||
read -p "Do you want to keep the checked out version of Zoneminder (incase you want to modify it later) [y/N]"
|
read -p "Do you want to keep the checked out version of Zoneminder (incase you want to modify it later) [y/N]"
|
||||||
[[ $REPLY == [yY] ]] && { mv $DIRECTORY zoneminder_release; echo "The checked out copy is preserved in zoneminder_release"; } || { rm -fr $DIRECTORY; echo "The checked out copy has been deleted"; }
|
[[ $REPLY == [yY] ]] && { mv $DIRECTORY zoneminder_release; echo "The checked out copy is preserved in zoneminder_release"; } || { rm -fr $DIRECTORY; echo "The checked out copy has been deleted"; }
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
else
|
||||||
|
rm -fr $DIRECTORY; echo "The checked out copy has been deleted";
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $TYPE == "binary" ]; then
|
if [ $TYPE == "binary" ]; then
|
||||||
|
if [ "$INTERACTIVE" != "no" ]; then
|
||||||
echo "Not doing dput since it's a binary release. Do you want to install it? (Y/N)"
|
echo "Not doing dput since it's a binary release. Do you want to install it? (Y/N)"
|
||||||
read install
|
read install
|
||||||
if [ "$install" == "Y" ]; then
|
if [ "$install" == "Y" ]; then
|
||||||
sudo dpkg -i $DIRECTORY*.deb
|
sudo dpkg -i $DIRECTORY*.deb
|
||||||
fi;
|
fi;
|
||||||
|
fi;
|
||||||
else
|
else
|
||||||
SC="";
|
SC="";
|
||||||
PPA="";
|
PPA="";
|
||||||
|
@ -164,8 +200,11 @@ else
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
dput="Y";
|
||||||
|
if [ "$INTERACTIVE" != "no" ]; then
|
||||||
echo "Ready to dput $SC to $PPA ? Y/N...";
|
echo "Ready to dput $SC to $PPA ? Y/N...";
|
||||||
read dput
|
read dput
|
||||||
|
fi
|
||||||
if [ "$dput" == "Y" -o "$dput" == "y" ]; then
|
if [ "$dput" == "Y" -o "$dput" == "y" ]; then
|
||||||
dput $PPA $SC
|
dput $PPA $SC
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in New Issue