From: Mike Marchetti Date: Wed, 3 Oct 2018 20:20:53 +0000 (+0200) Subject: Merge "Setup sudo nopassword for initial packer build" X-Git-Tag: v5.0.0~86 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4d3ae7e0c857697202ebd209ab85b12a45c98fd8;hp=bcbad570aa0b9abdcd1e0f5661a2f453d28b8108;p=osm%2Fdevops.git Merge "Setup sudo nopassword for initial packer build" --- diff --git a/tools/gen-repo.sh b/tools/gen-repo.sh index e0d1a665..b3329185 100755 --- a/tools/gen-repo.sh +++ b/tools/gen-repo.sh @@ -155,4 +155,12 @@ cd $CURR_DIR/$REPO_BASE # copy over the changelog file [ "$CHANGE_LOG_FILE" ] && cp "$CHANGE_LOG_FILE" osm/debian/$RELEASE_DIR +IM_BASE="osm/debian/$RELEASE_DIR/pool/IM/osm-imdocs_" +if ls "$IM_BASE"* 1> /dev/null 2>&1; then + IM_TMP_DIR=$(mktemp -d) + dpkg -x "$IM_BASE"* $IM_TMP_DIR + mkdir osm/debian/$RELEASE_DIR/docs + cp -R $IM_TMP_DIR/usr/share/osm-im osm/debian/$RELEASE_DIR/docs +fi + rsync -avR $RSYNC_OPTIONS osm/debian/$RELEASE_DIR rsync://$RSYNC_USER_HOST/repos