citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit c25a4e2f447a1db570023b794a8afb1364630222
parent 515165f1882a42212f527b7d903c713f675c6a92
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Thu,  9 Jun 2016 20:23:59 -0600

pkg: pkg.sh now requires an argument

Diffstat:
Mpkg/openbsd/pkg.sh | 2+-
Mpkg/pkg.sh | 7++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pkg/openbsd/pkg.sh b/pkg/openbsd/pkg.sh @@ -3,7 +3,7 @@ set -e set -x -portname="citrun" +portname="${1}" # Make sure package building doesn't rely on anything that's already installed doas pkg_delete $portname || true diff --git a/pkg/pkg.sh b/pkg/pkg.sh @@ -9,4 +9,9 @@ if [ ! -d $uname_lc ]; then exit 1; fi -(cd $uname_lc && sh pkg.sh) +if [ "${1}" != "citrun" -a "${1}" != "ccitrunrun" ]; then + echo Error: package name must be "citrun" or "ccitrunrun" + exit 2; +fi + +(cd $uname_lc && sh pkg.sh ${1})