aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Bialecki <abial@FreeBSD.org>1998-09-04 19:38:57 +0000
committerAndrzej Bialecki <abial@FreeBSD.org>1998-09-04 19:38:57 +0000
commitc7b3a66f6523638f2e594d7b0b072a6d2e4835f6 (patch)
treea4fa79e69bbbf8942cf0310595b19ad91aeb169d
parent13575fc46f0ff13172a820b6fcd3626f6de7263a (diff)
downloadsrc-c7b3a66f6523638f2e594d7b0b072a6d2e4835f6.tar.gz
src-c7b3a66f6523638f2e594d7b0b072a6d2e4835f6.zip
Added special type of setup called 'custom'. It allows you to supply
your own config directory laid out exactly like the standard ones. Suggested by: Richard Wackerbarth <rkw@dataplex.net>
Notes
Notes: svn path=/head/; revision=38817
-rwxr-xr-xrelease/picobsd/build/build42
-rwxr-xr-xrelease/picobsd/build/clean3
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 ======================"