Annotation of embedaddon/release.sh, revision 1.1

1.1     ! misho       1: #!/bin/sh
        !             2: #
        !             3: # (C)`10 PKG-Release for ELWIX by Michael Pounov <misho@elwix.org>
        !             4: #
        !             5: # ./build.sh  [os_specific_build_set] [prefix_before_archive] [other_make_opts ...]
        !             6: #
        !             7: # $Id: build.sh,v 1.4 2011/07/22 10:45:28 misho Exp $
        !             8: #
        !             9: 
        !            10: POST_CMDS="choparp ttcp"
        !            11: MK=${1:-make}
        !            12: P=${2:-/tmp}
        !            13: PFX="${P}/embedaddon_src_$(date +%y%m%d).tar.gz"
        !            14: shift; shift; shift;
        !            15: echo ">>> Working script ${MK} into ${PFX}"
        !            16: 
        !            17: TOP=$(pwd)
        !            18: echo ">>> TOPDIR=${TOP}"
        !            19: 
        !            20: for CMD in *; do
        !            21:        [ -f $CMD ] && continue
        !            22: 
        !            23:        cd $CMD
        !            24:        ${MK} clean
        !            25:        echo ">>> Now clean ELWIX firmware package ... ${CMD}"
        !            26:        cd -
        !            27: done
        !            28: 
        !            29: for CMD in ${POST_CMDS}; do
        !            30:        find . -type f -name $CMD -exec rm -f {} \;
        !            31: done
        !            32: echo ">>> Now clean post ELWIX firmware packages ..."
        !            33: 
        !            34: tar -czvf ${PFX} --exclude CVS .
        !            35: echo ">>> Now release ELWIX firmware ... ${PFX}"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>