create-mkdebian.sh: Debian changelog is now generated by dch

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2015-05-30 20:03:33 +00:00
commit d31bc920fe

View file

@ -11,18 +11,18 @@ format_depends()
echo "\$@" | sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//; s/^ *,//; s/\([><=]\+\)\([0-9.-]\+\)/ (\1\2) /g' echo "\$@" | sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//; s/^ *,//; s/\([><=]\+\)\([0-9.-]\+\)/ (\1\2) /g'
} }
changelog() #changelog()
{ #{
#dch -c /dev/stdout --create -v \$VERSION-\$RELEASE --package \$NAME # #dch -c /dev/stdout --create -v \$VERSION-\$RELEASE --package \$NAME
cat << EOF #cat << EOF
\$NAME (\$VERSION-\$RELEASE) UNRELEASED; urgency=medium #\$NAME (\$VERSION-\$RELEASE) UNRELEASED; urgency=medium
#
* Initial release. (Closes: #XXXXXX) # * Initial release. (Closes: #XXXXXX)
#
-- Jan Lindemann <jan@janware.com> `date -R` # -- Jan Lindemann <jan@janware.com> `date -R`
#
EOF #EOF
} #}
compat() compat()
{ {
@ -110,13 +110,17 @@ EOF
} }
mkdir -p debian mkdir -p debian
#dch --create --empty
cd debian cd debian
for file in changelog compat control copyright format rules; do for file in compat control copyright format rules; do
test -e \$file && continue test -e \$file && continue
\$file > \$file \$file > \$file
done done
cd ..
dch --create --newversion \$VERSION-\$RELEASE --controlmaint --package \$NAME --distribution unstable "Release built by $0"
echo "Produced by $0, the output should be in the \"debian\" sub-directory." echo "Produced by $0, the output should be in the \"debian\" sub-directory."
EOT EOT