From f82aa51adf4ea5317ef37669319bc9651692e738 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 26 Oct 2014 00:14:19 +0200 Subject: refactor code into new publish_changes_to_userContent() This new function is used to publish both the Debian Edu manuals as well as the Debian Installer installation-guide to https://jenkins.debian.net/userContent/debian-edu-doc/ and https://jenkins.debian.net/userContent/installation-guide/ --- bin/d-i_manual.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'bin/d-i_manual.sh') diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh index fa014e50..6c9c7e22 100755 --- a/bin/d-i_manual.sh +++ b/bin/d-i_manual.sh @@ -20,6 +20,10 @@ init_workspace() { } pdebuild_package() { + # + # only used to build the installation-guide package + # + SOURCE=installation-guide # # prepare build # @@ -35,9 +39,12 @@ pdebuild_package() { cd manual NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l) pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU" - # cleanup - SOURCE=$(grep "^Source: " debian/control |cut -d " " -f2) - sudo dcmd rm /var/cache/pbuilder/result/${SOURCE}_*changes + # + # publish and cleanup + # + CHANGES=$(ls /var/cache/pbuilder/result/${SOURCE}_*changes) + publish_changes_to_userContent $CHANGES debian-boot "svn-r$SVN_REVISION" + sudo dcmd rm $CHANGES cd .. } -- cgit v1.2.3-54-g00ecf