From c2a458f1a90b7bd4d4c3148175e82b06efc9de29 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 9 Jan 2015 13:26:44 +0100 Subject: reproducible: update links after apache change. strip the leading /userContent where possible --- bin/reproducible_common.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bin/reproducible_common.sh') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 64dd33e8..16516a2b 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -216,7 +216,7 @@ set_icon() { write_icon() { # ICON and STATE_TARGET_NAME are set by set_icon() - write_page "\"${STATE_TARGET_NAME}" + write_page "\"${STATE_TARGET_NAME}" } write_page_header() { @@ -256,7 +256,7 @@ write_page_header() { else SPOKEN_TARGET=${SPOKENTARGET[$TARGET]} fi - write_page "
  • ${SPOKEN_TARGET}
  • " + write_page "
  • ${SPOKEN_TARGET}
  • " done write_page "" write_page "" @@ -282,7 +282,7 @@ publish_page() { cp $PAGE /var/lib/jenkins/userContent/reproducible.html fi rm $PAGE - echo "Enjoy $REPRODUCIBLE_URL/userContent/$PAGE" + echo "Enjoy $REPRODUCIBLE_URL/$PAGE" } set_package_star() { @@ -332,7 +332,7 @@ init_pkg_page() { echo "$1 - reproducible builds results" >> ${PKG_FILE} echo "
    $1 $2" >> ${PKG_FILE} set_icon "$3" $5 # this sets $STATE_TARGET_NAME and $ICON - echo "\"${STATE_TARGET_NAME}" >> ${PKG_FILE} + echo "\"${STATE_TARGET_NAME}" >> ${PKG_FILE} echo "at $4: " >> ${PKG_FILE} } @@ -341,7 +341,7 @@ append2pkg_page() { } finish_pkg_page() { - echo "reproducible builds
    " >> ${PKG_FILE} + echo "reproducible builds" >> ${PKG_FILE} echo "" >> ${PKG_FILE} @@ -364,7 +364,7 @@ process_packages() { MAINLINK="" NOTES_LINK="" if [ -f ${NOTES_PATH}/${PKG}_note.html ] ; then - NOTES_LINK=" notes " + NOTES_LINK=" notes " fi set_package_star if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then @@ -374,19 +374,19 @@ process_packages() { init_pkg_page "$PKG" "$VERSION" "$STATUS" "$BUILD_DATE" "$STAR" append2pkg_page "${NOTES_LINK}" if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then - append2pkg_page " buildinfo " - MAINLINK="/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" + append2pkg_page " buildinfo " + MAINLINK="/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" fi if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then - append2pkg_page " debbindiff " - MAINLINK="/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" + append2pkg_page " debbindiff " + MAINLINK="/dbd/${PKG}_${EVERSION}.debbindiff.html" fi RBUILD_LOG="rbuild/${PKG}_${EVERSION}.rbuild.log" if [ -f "/var/lib/jenkins/userContent/${RBUILD_LOG}" ] ; then SIZE=$(du -sh "/var/lib/jenkins/userContent/${RBUILD_LOG}" |cut -f1) - append2pkg_page " rbuild ($SIZE) " + append2pkg_page " rbuild ($SIZE) " if [ "$MAINLINK" = "" ] ; then - MAINLINK="/userContent/${RBUILD_LOG}" + MAINLINK="/${RBUILD_LOG}" fi fi append2pkg_page " PTS " @@ -395,7 +395,7 @@ process_packages() { append2pkg_page " debian/rules " if [ ! -z "${NOTES_LINK}" ] ; then - MAINLINK="/userContent/notes/${PKG}_note.html" + MAINLINK="/notes/${PKG}_note.html" fi finish_pkg_page "$MAINLINK" fi -- cgit v1.2.3-70-g09d2