]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ci: strip comments from the control file for dch's weak parser
authorTravis Cross <tc@traviscross.com>
Sun, 6 May 2012 04:12:06 +0000 (04:12 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 6 May 2012 04:28:17 +0000 (04:28 +0000)
scripts/ci/debsrcbuilder.sh

index 75bfe33ebce9a8b67b8bdb337ade25e36e40ef7b..f8d382c807a5029d1e1baf77fe0a6bc5527b905b 100755 (executable)
@@ -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" \