Changeset 13814 in project for chicken


Ignore:
Timestamp:
03/18/09 14:26:13 (11 years ago)
Author:
felix winkelmann
Message:

optional bootstrapping for test-dist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/scripts/test-dist.sh

    r13813 r13814  
    22### test-dist.sh - test distribution tarball
    33#
    4 # usage: test-dist.sh PLATFORM TARBALL
     4# usage: test-dist.sh [-bootstrap] PLATFORM TARBALL
    55
    66set -e
     
    88
    99pwdopts=
     10bootstrap=
     11
     12if test "$1" == "-bootstrap"; then
     13    bootstrap=1
     14    shift
     15fi
    1016
    1117if test $# \!= 2; then
    12     echo "usage: test-dist.sh PLATFORM TARBALL"
     18    echo "usage: test-dist.sh [-bootstrap] PLATFORM TARBALL"
    1319    exit 1
    1420fi
     
    1723tarball="$2"
    1824
     25# use gmake, if available
     26if test -z `which gmake`; then
     27    makeprg=make
     28fi
     29
     30# need Windows-style drive letter on mingw/msys
     31if test -n "$MSYSTEM"; then
     32    pwdopts=-W
     33fi
     34
     35# bootstrap, if desired
     36prefix=`pwd $pwdopts`/tmp-test-dist
     37
     38if test -n "$bootstrap"; then
     39    $makeprg PLATFORM=$platform PREFIX=`pwd $pwdopts` DEBUGBUILD=1 bootstrap
     40    $makeprg PLATFORM=$platform PREFIX=`pwd $pwdopts` DEBUGBUILD=1 CHICKEN=./chicken-boot confclean all install
     41fi
     42
     43# prepare testing directory
    1944if test -d tmp-test-dist; then
    2045    rm -fr tmp-test-dist/*
     
    2348mkdir -p tmp-test-dist
    2449cp "$tarball" tmp-test-dist
    25 
    26 # need Windows-style drive letter on mingw/msys
    27 
    28 if test -n "$MSYSTEM"; then
    29     pwdopts=-W
    30 fi
    31 
    32 prefix=`pwd $pwdopts`/tmp-test-dist
    33 
    34 # use gmake, if available
    35 if test -z `which gmake`; then
    36     makeprg=make
    37 fi
    3850
    3951# unpack and enter
Note: See TracChangeset for help on using the changeset viewer.