#!/bin/sh if test $# -lt 1; then echo "Usage: $0 directory" exit 1 fi #Build hub/leaf ./build -C -n all #Then package up each cfg cfgs="`find \"$@\" -name \"*.cfg\"`" for cfg in $cfgs do if test "`grep 'PACKNAME' $cfg`x" != "x"; then #Dont compile, just package up and dont rm old binaries. ./build -n -P -p $cfg all fi done