further changes to ensure that source .orig tarball is always the same
This commit is contained in:
parent
fe0ebc7067
commit
7ac955d005
|
@ -163,8 +163,19 @@ if [ $? -ne 0 ]; then
|
||||||
fi;
|
fi;
|
||||||
cd "$DIRECTORY.orig";
|
cd "$DIRECTORY.orig";
|
||||||
|
|
||||||
|
# Init submodules
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm -rf .git
|
||||||
|
rm .gitignore
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
||||||
|
cd $DIRECTORY.orig
|
||||||
|
|
||||||
|
# Generate Changlog
|
||||||
if [ "$DISTRO" == "trusty" ] || [ "$DISTRO" == "precise" ]; then
|
if [ "$DISTRO" == "trusty" ] || [ "$DISTRO" == "precise" ]; then
|
||||||
mv distros/ubuntu1204 debian
|
mv distros/ubuntu1204 debian
|
||||||
else
|
else
|
||||||
|
@ -189,12 +200,6 @@ if [ "$URGENCY" = "" ]; then
|
||||||
URGENCY="medium"
|
URGENCY="medium"
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
rm -rf .git
|
|
||||||
rm .gitignore
|
|
||||||
cd ../
|
|
||||||
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
|
||||||
cd $DIRECTORY.orig
|
|
||||||
|
|
||||||
if [ "$SNAPSHOT" == "stable" ]; then
|
if [ "$SNAPSHOT" == "stable" ]; then
|
||||||
cat <<EOF > debian/changelog
|
cat <<EOF > debian/changelog
|
||||||
zoneminder ($VERSION-$DISTRO${PACKAGE_VERSION}) $DISTRO; urgency=$URGENCY
|
zoneminder ($VERSION-$DISTRO${PACKAGE_VERSION}) $DISTRO; urgency=$URGENCY
|
||||||
|
|
Loading…
Reference in New Issue