citrun

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

commit b88a9cb289cb531e85b32e7382e4b0158d3d486b
parent 299b29e159bf4fb5fa2b7e5482b73dd01eb3dc08
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Mon, 11 Apr 2016 19:29:41 -0600

pkg: rework openbsd packaging

Diffstat:
Rpkg/openbsd/citrun/Makefile -> pkg/openbsd/devel/citrun/Makefile | 0
Rpkg/openbsd/citrun/pkg/DESCR -> pkg/openbsd/devel/citrun/pkg/DESCR | 0
Rpkg/openbsd/citrun/pkg/PLIST -> pkg/openbsd/devel/citrun/pkg/PLIST | 0
Apkg/openbsd/pkg.sh | 19+++++++++++++++++++
Mpkg/package.sh | 30+-----------------------------
5 files changed, 20 insertions(+), 29 deletions(-)

diff --git a/pkg/openbsd/citrun/Makefile b/pkg/openbsd/devel/citrun/Makefile diff --git a/pkg/openbsd/citrun/pkg/DESCR b/pkg/openbsd/devel/citrun/pkg/DESCR diff --git a/pkg/openbsd/citrun/pkg/PLIST b/pkg/openbsd/devel/citrun/pkg/PLIST diff --git a/pkg/openbsd/pkg.sh b/pkg/openbsd/pkg.sh @@ -0,0 +1,19 @@ +#!/bin/sh -e + +ver=0 +pkgname="ccitrunrun" +distname="${pkgname}-${ver}" +distfile="$distname.tar.gz" + +if [ "`uname`" != "OpenBSD" ]; then + echo "not making OpenBSD package on `uname`" + exit 1 +fi + +# Git won't archive the whole tree unless its called in the root.. +(cd ../../ && git archive --prefix=$distname/ -o /usr/ports/distfiles/$distfile HEAD) + +export PORTSDIR_PATH="`pwd`:/usr/ports" +export NO_CHECKSUM=1 +make -C devel/$pkgname clean=all +make -C devel/$pkgname package diff --git a/pkg/package.sh b/pkg/package.sh @@ -6,35 +6,7 @@ ver=0 echo archiving (cd .. && git archive --prefix=citrun-$ver/ -o citrun-$ver.tar.gz HEAD) -if [ "`uname`" == "OpenBSD" ]; then - echo OpenBSD detected - - if [ ! -d ports ]; then - echo downloading OPENBSD_5_8 stable ports tree - curl -O http://ftp.openbsd.org/pub/OpenBSD/5.8/ports.tar.gz - echo ..extracting - tar xzf ports.tar.gz - - #echo overlaying CVS metadata and getting latest patches - #cvs -qd anoncvs@anoncvs.usa.openbsd.org:/cvs get -rOPENBSD_5_8 -P ports - else - echo assuming ports/ tree already checked out - fi - - echo copying port files into place - rm -rf ports/devel/citrun - cp -R openbsd ports/devel/citrun - - mkdir -p ports/distfiles - mv ../citrun-$ver.tar.gz ports/distfiles/ - - echo creating package from citrun-$ver.tar.gz - export PORTSDIR=`pwd`/ports - export NO_CHECKSUM=1 - make -C ports/devel/citrun clean=all - make -C ports/devel/citrun package - -elif [ "`uname`" == "Darwin" ]; then +if [ "`uname`" == "Darwin" ]; then rm -rf Citrun.app citrun_rw_img.dmg Citrun-$ver.dmg # Recompile from a fresh tarball