#! /bin/sh

#
# Build a new bootstrap package,
# producing openpkg-<date>-<date>.src.sh
#
TOPDIR=opkg
TOPUSE=opkg
BASEID=200
time ./openpkg.boot --prefix=/$TOPDIR --tag=$TOPDIR --user=$TOPUSE --group=$TOPUSE \
                    --muid=${BASEID}1 --ruid=${BASEID}2 --nuid=${BASEID}3 \
                    --mgid=${BASEID}1 --rgid=${BASEID}2 --ngid=${BASEID}3
                    --use_tar=/$TOPDIR/bin/tar --use_make=/$TOPDIR/bin/make \
                    --use_cc=/$TOPDIR/bin/cc --use_ar=/$TOPDIR/bin/ar \
                    --use_ld=/$TOPDIR/bin/ld --use_as=/$TOPDIR/bin/as \
                    --use_strip=/$TOPDIR/bin/strip \
                    2>&1 | tee buildlog.txt
