File:  [ELWIX - Embedded LightWeight unIX -] / elwix / Attic / build_pkgsrc.sh
Revision 1.1.2.3: download - view: text, annotated - select for diffs - revision graph
Tue Mar 20 15:21:24 2012 UTC (12 years, 3 months ago) by misho
Branches: elwix1_6
clean pkgsrc from obsolate code

    1: #!/bin/sh
    2: #
    3: # ELWIX build script for pkgsrc
    4: #
    5: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
    6: #    by Michael Pounov <misho@elwix.org>
    7: #
    8: # ./build_package.sh <package_name>
    9: #
   10: # $Id: build_pkgsrc.sh,v 1.1.2.3 2012/03/20 15:21:24 misho Exp $
   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: [ -r ${CENV} ] && . ${CENV}
   22: 
   23: if [ ! -d $BSDSRC ]; then
   24: 	echo
   25: 	echo "ELWIX project is not configured - missing BSD sources !?!"
   26: 	echo
   27: 	exit 1
   28: fi
   29: 
   30: if [ ! -d $DEST ]; then
   31: 	echo
   32: 	echo "ELWIX project is not configured - missing Dest directory !?!"
   33: 	echo
   34: 	exit 1
   35: fi
   36: 
   37: if [ "${USER}" != "root" ]; then
   38: 	echo
   39: 	echo "Script must build under root"
   40: 	echo
   41: 	exit 1
   42: fi
   43: 
   44: ### main
   45: 

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