diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-25 15:33:34 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-25 15:33:34 +0100 |
commit | c72a4f2ddbb977d6055c44275c0341b40618d216 (patch) | |
tree | c9925e10ec2164124a559efc6b54edac40df2e7c /packages/wide-dhcpv6/build-wide.sh | |
parent | d5fd578dfcc6c65a47b9ff420815d6b66f77b2e4 (diff) | |
download | vyos-build-c72a4f2ddbb977d6055c44275c0341b40618d216.tar.gz vyos-build-c72a4f2ddbb977d6055c44275c0341b40618d216.zip |
wide-dhcpv6: T3240: add CI
Diffstat (limited to 'packages/wide-dhcpv6/build-wide.sh')
-rwxr-xr-x | packages/wide-dhcpv6/build-wide.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/wide-dhcpv6/build-wide.sh b/packages/wide-dhcpv6/build-wide.sh new file mode 100755 index 00000000..6da4534b --- /dev/null +++ b/packages/wide-dhcpv6/build-wide.sh @@ -0,0 +1,25 @@ +#!/bin/sh +CWD=$(pwd) +set -e + +WIDE_SRC=wide-dhcpv6 + +if [ ! -d ${WIDE_SRC} ]; then + echo "Source directory does not exists, please 'git clone'" + exit 1 +fi + + +PATCH_DIR=${CWD}/patches +if [ -d $PATCH_DIR ]; then + for patch in $(ls ${PATCH_DIR}) + do + echo "I: Apply patch: ${patch} to main repository" + cp ${PATCH_DIR}/${patch} ${WIDE_SRC}/debian/patches/ + echo ${patch} >> ${WIDE_SRC}/debian/patches/series + done +fi + +cd ${WIDE_SRC} +echo "I: Build Debian Package" +dpkg-buildpackage -uc -us -tc -b |