improve packaging: use sh -ex
This commit is contained in:
parent
3ba9b93365
commit
fc734dc2cd
2 changed files with 4 additions and 4 deletions
|
@ -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: [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue