minor fixes
This commit is contained in:
parent
34ce8df43d
commit
21cf8a3dcd
4 changed files with 12 additions and 10 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# opam-graph
|
||||
|
||||
Visualizes dependencies of "opam switch export" as dot or svg.
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# only execute anything if either
|
||||
# - running under orb with package = builder-web
|
||||
# - running under orb with package = opam-graph
|
||||
# - not running under opam at all
|
||||
if [ "$ORB_BUILDING_PACKAGE" != "opam-graph" -a "$OPAM_PACKAGE_NAME" != "" ]; then
|
||||
exit 0;
|
||||
|
@ -37,6 +37,6 @@ sed -e "s:%%FLATSIZE%%:${flatsize}:" -e "/^[Vversion:/s/-/./g" "$pdir/MANIFEST"
|
|||
|
||||
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=format:%ct)
|
||||
pkg create -r "$rootdir" -M "$manifest" -o "$basedir/"
|
||||
mv "$basedir"/builder-web-*.pkg "$basedir/builder-web.pkg"
|
||||
echo 'bin: [ "builder-web.pkg" ]' > "$basedir/builder-web.install"
|
||||
echo 'doc: [ "README.md" ]' >> "$basedir/builder-web.install"
|
||||
mv "$basedir"/opam-graph-*.pkg "$basedir/opam-graph.pkg"
|
||||
echo 'bin: [ "opam-graph.pkg" ]' > "$basedir/opam-graph.install"
|
||||
echo 'doc: [ "README.md" ]' >> "$basedir/opam-graph.install"
|
||||
|
|
|
@ -4,5 +4,5 @@ Upstream-Contact: Robur Team <team@robur.coop>
|
|||
Source: https://git.robur.io/robur/opam-graph
|
||||
|
||||
Files: *
|
||||
Copyright: "Hannes Mehnert <hannes@mehnert.org>"
|
||||
Copyright: "Robur Team <team@robur.coop>"
|
||||
License: ISC
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# only execute anything if either
|
||||
# - running under orb with package = builder-web
|
||||
# - running under orb with package = opam-graph
|
||||
# - not running under opam at all
|
||||
if [ "$ORB_BUILDING_PACKAGE" != "opam-graph" -a "$OPAM_PACKAGE_NAME" != "" ]; then
|
||||
exit 0;
|
||||
|
@ -13,16 +13,15 @@ tmpd=$basedir/_build/stage
|
|||
rootdir=$tmpd/rootdir
|
||||
bindir=$rootdir/usr/bin
|
||||
debiandir=$rootdir/DEBIAN
|
||||
libexecdir=$rootdir/usr/libexec
|
||||
|
||||
trap 'rm -rf $tmpd' 0 INT EXIT
|
||||
|
||||
mkdir -p "$debiandir" "$bindir" "$libexecdir"
|
||||
mkdir -p "$debiandir" "$bindir"
|
||||
|
||||
install "$bdir/opam-graph" "$bindir/opam-graph"
|
||||
|
||||
ARCH=$(dpkg-architecture -q DEB_TARGET_ARCH)
|
||||
sed -i -e "s/^Architecture:.*/Architecture: ${ARCH}/" "$debiandir"/control
|
||||
|
||||
dpkg-deb --build "$rootdir" "$basedir"/builder-web.deb
|
||||
echo 'bin: [ "builder-web.deb" ]' > "$basedir/builder-web.install"
|
||||
dpkg-deb --build "$rootdir" "$basedir"/opam-graph.deb
|
||||
echo 'bin: [ "opam-graph.deb" ]' > "$basedir/opam-graph.install"
|
||||
|
|
Loading…
Reference in a new issue