commit 5618d3562a787a84fb0a9e9687a2cab5d754472d parent 51c9892f5f3fa2b52561e14c1545d0056ffbb179 Author: Kyle Milz <kyle@getaddrinfo.net> Date: Thu, 31 Mar 2016 22:35:21 -0600 pkg: get a script going to package things Diffstat:
A | package.sh | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/package.sh b/package.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +ver=0 + +echo archiving +git archive --format=tar.gz --prefix=citrun-$ver/ HEAD > pkg/citrun-$ver.tar.gz + +if [ "`uname`" == "OpenBSD" ]; then + echo creating OpenBSD package + if [ ! -d /usr/ports ]; then + echo error: check out /usr/ports first + exit 1 + fi + pkg_dir=`pwd`/pkg + export PORTSDIR_PATH="/usr/ports:$pkg_dir" + export DISTDIR=$pkg_dir + make -C pkg/devel/citrun clean=all + make -C pkg/devel/citrun package +fi + +echo done