ci: strip comments from the control file for dch's weak parser

This commit is contained in:
Travis Cross 2012-05-06 04:12:06 +00:00
parent d8376609d1
commit ab826e67ef
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ echo "changing directory to ${src_repo}/debbuild/${dst_full_name}"
cd ${src_repo}/debbuild/${dst_full_name}
(cd debian && ./bootstrap.sh)
# dch can't handle comments in control file
(cd debian; \
mv control control.orig; \
grep -e '^#' -v control.orig > control)
# dependency: libparse-debcontrol-perl
dch -v "${dst_full_version}-1" \
-M --force-distribution -D "$distro" \