citrun

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

commit 611238af66efa035bae4bf99f4d6b3cdacab592a
parent 11397180946b579f851bf2c8f461e579649b0d8f
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Thu, 31 Mar 2016 23:58:14 -0600

pkg: move script

Diffstat:
Dpackage.sh | 28----------------------------
Apkg/package.sh | 28++++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/package.sh b/package.sh @@ -1,28 +0,0 @@ -#!/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 - # OpenBSD port building stuff needs to know where home is - export PORTSDIR_PATH="/usr/ports:$pkg_dir" - # Tarball is located here - export DISTDIR=$pkg_dir - # Disable tarball checksumming. - # Continuous integration does not like this kind of stuff. - export NO_CHECKSUM=1 - make -C pkg/devel/citrun clean=all - make -C pkg/devel/citrun package -else - echo error: `uname` needs package magic -fi - -echo done diff --git a/pkg/package.sh b/pkg/package.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +ver=0 + +echo downloading +cp /var/www/htdocs/citrun.com/citrun-0.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 + cur_dir=`pwd` + # OpenBSD port building stuff needs to know where home is + export PORTSDIR_PATH="/usr/ports:$cur_dir" + # Tarball is located here + export DISTDIR=$cur_dir + # Disable tarball checksumming. + # Continuous integration does not like this kind of stuff. + export NO_CHECKSUM=1 + make -C devel/citrun clean=all + make -C devel/citrun package +else + echo error: `uname` needs package magic +fi + +echo done