Annotation of elwix/build_package.sh, revision 1.1.2.2

1.1.2.1   misho       1: #!/bin/sh
                      2: #
                      3: # ELWIX build script for ELWIX packages
                      4: #
                      5: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
                      6: #    by Michael Pounov <misho@elwix.org>
                      7: #
1.1.2.2 ! misho       8: # ./build_package.sh <package_name>
        !             9: #
        !            10: # $Id: build_package.sh,v 1.1.2.1 2012/03/19 21:37:22 misho Exp $
1.1.2.1   misho      11: #
                     12: 
                     13: [ -r ./config/rc.pkg ] && . ./config/rc.pkg
                     14: [ -r ./config/rc.elwix ] && . ./config/rc.elwix
                     15: if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then
                     16:        echo
                     17:        echo "ELWIX project is not configured !?!"
                     18:        echo
                     19:        exit 1
                     20: fi
                     21: 
                     22: if [ ! -d $BSDSRC ]; then
                     23:        echo
                     24:        echo "ELWIX project is not configured - missing BSD sources !?!"
                     25:        echo
                     26:        exit 1
                     27: fi
                     28: 
                     29: if [ ! -d $DEST ]; then
                     30:        echo
                     31:        echo "ELWIX project is not configured - missing Dest directory !?!"
                     32:        echo
                     33:        exit 1
                     34: fi
                     35: 
1.1.2.2 ! misho      36: if [ -z "$1" ]; then
        !            37:        echo
        !            38:        echo "Package name is missing"
        !            39:        echo
        !            40:        exit 1
        !            41: else
        !            42:        PKGCFG="./pkg/"$1".conf"
        !            43:        if [ "$COMPRESS_PACKAGE" = "YES" ]; then
        !            44:                PKGNAME=$REL/$1-$PLATFORM-$VERSION-pkg.fwz
        !            45:        else
        !            46:                PKGNAME=$REL/$1-$PLATFORM-$VERSION-pkg.fw
        !            47:        fi
        !            48: fi
        !            49: if [ ! -r $PKGCFG ]; then
        !            50:        echo
        !            51:        echo "ELWIX package config '$PKGCFG' not found"
        !            52:        echo
        !            53:        exit 1
        !            54: fi
        !            55: 
        !            56: echo ">>> Build package $1 from config $PKGCFG"
        !            57: echo
1.1.2.1   misho      58: 

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