prebuild.sh 246 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. VERSION=${VERSION:?"VERSION not set"}
  4. cd $(dirname $0)
  5. rm -rf ./build
  6. mkdir -p ./build
  7. cat > ./build/lsb-release << EOF
  8. DISTRIB_ID=${DISTRIB_ID}
  9. DISTRIB_RELEASE=${VERSION}
  10. DISTRIB_DESCRIPTION="${DISTRIB_ID} ${VERSION}"
  11. EOF