build.sh 664 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -e
  3. #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  4. #BASE_DIR="$( realpath "$DIR/../../../" )"
  5. echo -e "== Building the Debian package =="
  6. /usr/bin/python3 ./tools/prepare_packaging.py
  7. echo -e "--- New debian changelog content ---"
  8. echo "--------------------------------------"
  9. cat ./debian/changelog
  10. echo "--------------------------------------"
  11. #dpkg-buildpackage -b
  12. echo "Test file1" > ../libopen62541_dev.deb
  13. echo "Test file2" > ../libopen62541_tools.deb
  14. if [ $? -ne 0 ] ; then exit 1 ; fi
  15. echo "Copying .deb files to $BUILD_ARTIFACTSTAGINGDIRECTORY"
  16. cp ../libopen62541*.deb $BUILD_ARTIFACTSTAGINGDIRECTORY