Set the ${suffix} only once...
This commit is contained in:
parent
dd93cb4486
commit
25736f2460
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id: build,v 1.3 1998/09/04 08:08:05 abial Exp $
|
# $Id: build,v 1.4 1998/09/04 19:38:57 abial Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
# You can set the SRC variable which points to your source tree. It's
|
# You can set the SRC variable which points to your source tree. It's
|
||||||
@ -65,6 +65,7 @@ if [ "${TYPE}" = "custom" ]
|
|||||||
then
|
then
|
||||||
suffix="-C"
|
suffix="-C"
|
||||||
fi
|
fi
|
||||||
|
export suffix
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "-> Building with following parameters:"
|
echo "-> Building with following parameters:"
|
||||||
|
@ -1,28 +1,11 @@
|
|||||||
#! /bin/sh -
|
#! /bin/sh -
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id: stage1,v 1.4 1998/08/10 19:06:48 abial Exp $
|
# $Id: stage1,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "${TYPE}" = "dial" ]
|
|
||||||
then
|
|
||||||
suffix="-D"
|
|
||||||
fi
|
|
||||||
if [ "${TYPE}" = "net" ]
|
|
||||||
then
|
|
||||||
suffix="-N"
|
|
||||||
fi
|
|
||||||
if [ "${TYPE}" = "isp" ]
|
|
||||||
then
|
|
||||||
suffix="-I"
|
|
||||||
fi
|
|
||||||
if [ "${TYPE}" = "router" ]
|
|
||||||
then
|
|
||||||
suffix="-R"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${SRC}/sys/compile/PICOBSD${suffix}.${SIZE}/kernel ]; then
|
if [ ! -f ${SRC}/sys/compile/PICOBSD${suffix}.${SIZE}/kernel ]; then
|
||||||
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} first"
|
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} first"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,24 +1,10 @@
|
|||||||
#! /bin/sh -
|
#! /bin/sh -
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id: stage2,v 1.1.1.1 1998/07/14 07:30:51 abial Exp $
|
# $Id: stage2,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $
|
||||||
#
|
#
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "${TYPE}" = "dial" ]
|
|
||||||
then
|
|
||||||
suffix="-D"
|
|
||||||
fi
|
|
||||||
if [ "${TYPE}" = "net" ]
|
|
||||||
then
|
|
||||||
suffix="-N"
|
|
||||||
fi
|
|
||||||
if [ "${TYPE}" = "isp" ]
|
|
||||||
then
|
|
||||||
suffix="-I"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f kernel ]; then
|
if [ ! -f kernel ]; then
|
||||||
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} kernel first"
|
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} kernel first"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user