File:
[ELWIX - Embedded LightWeight unIX -] /
elwix /
Attic /
build_package.sh
Revision
1.2:
download - view:
text,
annotated -
select for diffs -
revision graph
Fri Oct 12 08:22:43 2012 UTC (11 years, 10 months ago) by
misho
Branches:
MAIN
CVS tags:
elwix2_6,
elwix2_3,
elwix2_2,
elwix2_1,
elwix2_0,
elwix1_9_mips,
elwix1_9,
elwix1_8,
elwix1_7,
HEAD,
ELWIX2_5,
ELWIX2_2p0,
ELWIX2_1,
ELWIX2_0,
ELWIX1_9,
ELWIX1_8,
ELWIX1_7,
ELWIX1_6
ELWIX 1.6
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: #
8: # ./build_package.sh <package_name>
9: #
10: # $Id: build_package.sh,v 1.2 2012/10/12 08:22:43 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:
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:
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
58:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>