From 21cf8a3dcd0c5213b841496d6d9b3db678ff7ce4 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Wed, 27 Jul 2022 10:15:22 +0200 Subject: [PATCH] minor fixes --- README.md | 3 +++ packaging/FreeBSD/create_package.sh | 8 ++++---- packaging/debian/copyright | 2 +- packaging/debian/create_package.sh | 9 ++++----- 4 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0e9312d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# opam-graph + +Visualizes dependencies of "opam switch export" as dot or svg. diff --git a/packaging/FreeBSD/create_package.sh b/packaging/FreeBSD/create_package.sh index c75b4fb..7c18490 100644 --- a/packaging/FreeBSD/create_package.sh +++ b/packaging/FreeBSD/create_package.sh @@ -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" diff --git a/packaging/debian/copyright b/packaging/debian/copyright index 0cb689d..4bb5e47 100644 --- a/packaging/debian/copyright +++ b/packaging/debian/copyright @@ -4,5 +4,5 @@ Upstream-Contact: Robur Team Source: https://git.robur.io/robur/opam-graph Files: * -Copyright: "Hannes Mehnert " +Copyright: "Robur Team " License: ISC diff --git a/packaging/debian/create_package.sh b/packaging/debian/create_package.sh index 3d54202..8edd0bd 100644 --- a/packaging/debian/create_package.sh +++ b/packaging/debian/create_package.sh @@ -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"