source: hybrid/branches/releng-10/nanobsd/tools/make-release.sh@ 12872

Last change on this file since 12872 was 12872, checked in by rick, 11 years ago

python threading is required for python to make Jinja work these days. wondering how a single CPU embedded system will benefit for it... but that will be optimalisations later on.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2# Small tool to build nanobsd release, ready for distribution:
3
4BASEDIR="`dirname $0`/.."
5
6# Some cleaning at start
7for PORT in ${BASEDIR}/misc/ports/*/*; do
8 (cd $PORT; make clean);
9done
10
11# Version target
12# Either version from command line or else subversion base
13VERSION=${1-`svn info ${BASEDIR} | awk '/Revision:/ {print $2}'`}
14
15TMPDIR=`mktemp -d -t $(basename $0 .sh)`
16
17PKGDIR=wl-image-$VERSION
18WRKSRC=$TMPDIR/$PKGDIR
19mkdir $WRKSRC
20cp -R ${BASEDIR}/tools $WRKSRC
21cp -R ${BASEDIR}/cfg $WRKSRC
22cp -R ${BASEDIR}/misc $WRKSRC
23cp -R ${BASEDIR}/files $WRKSRC
24cp -R ${BASEDIR}/README.txt $WRKSRC
25
26# Present real image
27# XXX: Make path relative
28# XXX: Find some pretty options
29IMG=/usr/obj/nanobsd.wleiden/_.disk.full
30IMG_DIR=`dirname ${IMG}`
31IMG_PKGDIR=${IMG_DIR}/${PKGDIR}
32mkdir ${IMG_PKGDIR}
33ln ${IMG} ${IMG_PKGDIR}/disk_full.img
34
35# Make pretty tar file out of it
36tar --exclude ".svn" --exclude "Makefile" \
37 --exclude "config.cache" --exclude "config.log" --exclude "config.status" \
38 --exclude ".depend" \
39 -cjf wl-image-$VERSION.tbz \
40 -C $TMPDIR \
41 $PKGDIR/tools \
42 $PKGDIR/cfg \
43 $PKGDIR/files \
44 $PKGDIR/misc \
45 $PKGDIR/README.txt \
46 -C $IMG_DIR \
47 $PKGDIR/disk_full.img
48
49rm -fR $TMPDIR
50rm -fR $IMG_PKGDIR
51
Note: See TracBrowser for help on using the repository browser.