From 25736f24603cbbb3c271feb63677b5fb0afb4a71 Mon Sep 17 00:00:00 2001 From: abial Date: Mon, 7 Sep 1998 06:46:25 +0000 Subject: [PATCH] Set the ${suffix} only once... --- release/picobsd/build/build | 3 ++- release/picobsd/build/stage1 | 19 +------------------ release/picobsd/build/stage2 | 16 +--------------- 3 files changed, 4 insertions(+), 34 deletions(-) diff --git a/release/picobsd/build/build b/release/picobsd/build/build index 78f612e68410..7ed882c7ba5f 100755 --- a/release/picobsd/build/build +++ b/release/picobsd/build/build @@ -1,7 +1,7 @@ #!/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 @@ -65,6 +65,7 @@ if [ "${TYPE}" = "custom" ] then suffix="-C" fi +export suffix clear echo "-> Building with following parameters:" diff --git a/release/picobsd/build/stage1 b/release/picobsd/build/stage1 index a95fb01e9d3c..0f0f7b6736c4 100755 --- a/release/picobsd/build/stage1 +++ b/release/picobsd/build/stage1 @@ -1,28 +1,11 @@ #! /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 -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 echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} first" exit 1 diff --git a/release/picobsd/build/stage2 b/release/picobsd/build/stage2 index 72426cb5a880..d5f70a7aa33f 100755 --- a/release/picobsd/build/stage2 +++ b/release/picobsd/build/stage2 @@ -1,24 +1,10 @@ #! /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 -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 echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} kernel first" exit 1