diff options
-rwxr-xr-x | release/picobsd/build/build | 42 | ||||
-rwxr-xr-x | release/picobsd/build/clean | 3 |
2 files changed, 42 insertions, 3 deletions
diff --git a/release/picobsd/build/build b/release/picobsd/build/build index 4dcf3f154c65..78f612e68410 100755 --- a/release/picobsd/build/build +++ b/release/picobsd/build/build @@ -1,7 +1,7 @@ #!/bin/sh - # -# $Id: build,v 1.2 1998/09/03 10:40:27 abial Exp $ +# $Id: build,v 1.3 1998/09/04 08:08:05 abial Exp $ # # You can set the SRC variable which points to your source tree. It's @@ -61,6 +61,10 @@ if [ "${TYPE}" = "router" ] then suffix="-R" fi +if [ "${TYPE}" = "custom" ] +then + suffix="-C" +fi clear echo "-> Building with following parameters:" @@ -106,6 +110,26 @@ do done } +# Ask for, and set the custom config directory + +set_custom() { + clear + echo " Custom directory setup" + echo "" + echo "Please enter the full path to the directory containing your" + echo "custom setup." + echo "This directory tree must be laid out exactly like the standard" + echo "ones. (E.g. you can type in /home/abial/work/custom, which" + echo "should contain conf/, crunch1/, floppy.tree/, lang/, mfs.tree/)." + echo "" + read -p "Enter the custom directory: " CUST_DIR + if [ "X${CUST_DIR}" = "X" ] + then + echo "-> Error. Custom directory cannot be null!" + exit 1 + fi +} + # Set the LANGUAGE variable set_lang() { @@ -158,6 +182,9 @@ set_dflt_size() { elif [ "X${TYPE}" = "Xisp" ] then SIZE=$ISP_DFLT_SIZE + elif [ "X${TYPE}" = "Xcustom" ] + then + SIZE=$DIAL_DFLT_SIZE else echo "Unknown type of setup: \"${TYPE}\". Aborting..." exit 10 @@ -205,7 +232,13 @@ set_type() { echo " and ../isp respectively - the contents of the floppy is constructed" echo " basing on the Makefiles and scripts in them." echo "" - echo " E.g. if you define TYPE=dial, you'll end up having a floppy which is" + echo " You can also type in 'custom', and you'll be asked to enter the" + echo " full path to directory tree, where you stored your custom" + echo " configuration, laid out exactly like the standard ones. (E.g." + echo " you can type in /home/abial/work/custom, which should contain" + echo " conf/, crunch1/, floppy.tree/, lang/, mfs.tree/)." + echo "" + echo " If you define TYPE=dial, you'll end up having a floppy which is" echo " suitable for dialup access and not much else. If you define TYPE=net," echo " you'll have a small router-fixit-like floppy, which lacks most" echo " interactive tools. TYPE=isp gives you a dialin server floppy." @@ -219,6 +252,11 @@ set_type() { then INIT=oinit fi + if [ "X${TYPE}" = "Xcustom" ] + then + set_custom + (cd ..; ln -sf ${CUST_DIR} custom) + fi if [ "X${TYPE}" = "Xdial" -a "X${INIT}" = "X" ] then set_init diff --git a/release/picobsd/build/clean b/release/picobsd/build/clean index 17cbbb916419..52684636db63 100755 --- a/release/picobsd/build/clean +++ b/release/picobsd/build/clean @@ -1,7 +1,7 @@ #! /bin/sh - # -# $Id: clean,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +# $Id: clean,v 1.2 1998/09/03 10:40:27 abial Exp $ # set -e @@ -21,6 +21,7 @@ fi rm -f kernel kernel.kz fs.PICOBSD picobsd.bin *.o *core *.db rm -f picobsd.bin cd .. +rm -f custom for j in $list do echo "===================== $0 $j started ======================" |