github.com/imran-kn/cilium-fork@v1.6.9/contrib/packaging/deb/create_deb.sh (about) 1 #!/bin/bash 2 3 set -e 4 set -x 5 6 BUILD_DIR="/go/src/github.com/cilium/cilium" 7 BASE_DIR="/opt/cilium/" 8 SYSCONFIG_DIR="${BUILD_DIR}/contrib/systemd/" 9 BRANCH=$(cd ${BASE_DIR}/cilium; git rev-parse --abbrev-ref HEAD) 10 export VERSION=$(cat ${BASE_DIR}/cilium/VERSION) 11 echo $VERSION 12 13 mkdir -p ${BUILD_DIR} 14 mv ${BASE_DIR}/cilium/ $(dirname ${BUILD_DIR}) 15 cp -R ${BASE_DIR}/debian ${BUILD_DIR} 16 cd ${BUILD_DIR} 17 18 python ${BASE_DIR}/changelog_parser.py NEWS.rst > debian/changelog 19 git archive --format tar ${BRANCH} | gzip > ../cilium_${VERSION}.orig.tar.gz 20 debuild -e GOPATH -e GOROOT -e PATH -us -uc 21 cp ../cilium_* /output/