#!/bin/sh
#
# (C)`10 PKG-Release for ELWIX by Michael Pounov <misho@elwix.org>
#
# ./build.sh [os_specific_build_set] [prefix_before_archive] [other_make_opts ...]
#
# $Id: release.sh,v 1.1 2011/07/22 11:14:55 misho Exp $
#
POST_CMDS="choparp ttcp"
MK=${1:-make}
P=${2:-/tmp}
PFX="${P}/embedaddon_src_$(date +%y%m%d).tar.gz"
shift; shift; shift;
echo ">>> Working script ${MK} into ${PFX}"
TOP=$(pwd)
echo ">>> TOPDIR=${TOP}"
for CMD in *; do
[ -f $CMD ] && continue
cd $CMD
${MK} clean
echo ">>> Now clean ELWIX firmware package ... ${CMD}"
cd -
done
for CMD in ${POST_CMDS}; do
find . -type f -name $CMD -exec rm -f {} \;
done
echo ">>> Now clean post ELWIX firmware packages ..."
tar -czvf ${PFX} --exclude CVS .
echo ">>> Now release ELWIX firmware ... ${PFX}"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>