citrun

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

commit 40b9c1f282fe4fae1029c3f75a8033c82029690b
parent 3831e94ecfb038d1a059406465138c2d0f67fca0
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sat, 16 Apr 2016 18:01:50 -0600

pkg: add generic script

Diffstat:
Dpkg/package.sh | 46----------------------------------------------
Apkg/pkg.sh | 7+++++++
2 files changed, 7 insertions(+), 46 deletions(-)

diff --git a/pkg/package.sh b/pkg/package.sh @@ -1,46 +0,0 @@ -#!/bin/sh - -set -e -ver=0 - -echo archiving -(cd .. && git archive --prefix=citrun-$ver/ -o citrun-$ver.tar.gz HEAD) - -if [ "`uname`" == "Darwin" ]; then - rm -rf Citrun.app citrun_rw_img.dmg Citrun-$ver.dmg - - # Recompile from a fresh tarball - tar xzf ../citrun-$ver.tar.gz - rm ../citrun-$ver.tar.gz - (cd citrun-$ver && jam) - - mkdir Citrun.app - mkdir Citrun.app/Contents - - # Start out with a standard unix style install - (cd citrun-$ver && PREFIX=../Citrun.app/Contents jam install) - - (cd Citrun.app/Contents && mv bin MacOS) - (cd Citrun.app/Contents && mv lib/* MacOS/) - (cd Citrun.app/Contents && mv man Reources) - - cp osx/Info.plist Citrun.app/Contents/ - - # In case this didn't happen last time - umount /Volumes/Citrun || true - hdiutil create -size 32m -fs HFS+ -volname "Citrun" citrun_rw_img.dmg - hdiutil attach citrun_rw_img.dmg - - # Figure out what device we just mounted - DEVS=$(hdiutil attach citrun_rw_img.dmg | cut -f 1) - DEV=$(echo $DEVS | cut -f 1 -d ' ') - - cp -R Citrun.app /Volumes/Citrun/ - - hdiutil detach $DEV - hdiutil convert citrun_rw_img.dmg -format UDZO -o Citrun-$ver.dmg -else - echo error: `uname` needs package magic -fi - -echo done diff --git a/pkg/pkg.sh b/pkg/pkg.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# This script exists so that continuous integration has a single point of entry +# for building packages on all platforms. + +uname_lc=`uname | tr '[:upper:]' '[:lower:]'` +(cd $uname_lc && sh pkg.sh)