improve packaging: use sh -ex

This commit is contained in:
Hannes Mehnert 2021-08-02 15:44:38 +02:00
parent 3ba9b93365
commit fc734dc2cd
2 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,8 @@ build: [
["dune" "subst"] {dev} ["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs] ["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test} ["dune" "runtest" "-p" name "-j" jobs] {with-test}
["sh" "packaging/FreeBSD/create_package.sh"] {os = "freebsd"} ["sh" "-ex" "packaging/FreeBSD/create_package.sh"] {os = "freebsd"}
["sh" "packaging/debian/create_package.sh"] {os-family = "debian"} ["sh" "-ex" "packaging/debian/create_package.sh"] {os-family = "debian"}
] ]
depends: [ depends: [

View file

@ -49,6 +49,6 @@ sed -e "s:%%FLATSIZE%%:${flatsize}:" "$pdir/MANIFEST" > "$manifest"
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=format:%ct) export SOURCE_DATE_EPOCH=$(git log -1 --pretty=format:%ct)
pkg create -r "$rootdir" -M "$manifest" -o $basedir/ pkg create -r "$rootdir" -M "$manifest" -o $basedir/
mv $basedir/builder_web-*.txz $basedir/builder_web.txz mv $basedir/builder_web-*.pkg $basedir/builder_web.pkg
echo 'bin: [ "builder_web.txz" ]' > $basedir/builder-web.install echo 'bin: [ "builder_web.pkg" ]' > $basedir/builder-web.install
echo 'doc: [ "README.md" ]' >> $basedir/builder-web.install echo 'doc: [ "README.md" ]' >> $basedir/builder-web.install