head	1.18;
access;
symbols
	RELENG_4_11_0_RELEASE:1.12.2.6
	RELENG_4_11:1.12.2.6.0.18
	RELENG_4_11_BP:1.12.2.6
	RELENG_4_10_0_RELEASE:1.12.2.6
	RELENG_4_10:1.12.2.6.0.16
	RELENG_4_10_BP:1.12.2.6
	RELENG_4_9_0_RELEASE:1.12.2.6
	RELENG_4_9:1.12.2.6.0.14
	RELENG_4_9_BP:1.12.2.6
	RELENG_4_8_0_RELEASE:1.12.2.6
	RELENG_4_8:1.12.2.6.0.12
	RELENG_4_8_BP:1.12.2.6
	RELENG_4_7_0_RELEASE:1.12.2.6
	RELENG_4_7:1.12.2.6.0.10
	RELENG_4_7_BP:1.12.2.6
	RELENG_4_6_2_RELEASE:1.12.2.6
	RELENG_4_6_1_RELEASE:1.12.2.6
	RELENG_4_6_0_RELEASE:1.12.2.6
	RELENG_4_6:1.12.2.6.0.8
	RELENG_4_6_BP:1.12.2.6
	RELENG_4_5_0_RELEASE:1.12.2.6
	RELENG_4_5:1.12.2.6.0.6
	RELENG_4_5_BP:1.12.2.6
	RELENG_4_4_0_RELEASE:1.12.2.6
	RELENG_4_4:1.12.2.6.0.4
	RELENG_4_4_BP:1.12.2.6
	RELENG_4_3_0_RELEASE:1.12.2.6
	RELENG_4_3:1.12.2.6.0.2
	RELENG_4_3_BP:1.12.2.6
	RELENG_4_2_0_RELEASE:1.12.2.2
	RELENG_4_1_1_RELEASE:1.12.2.2
	PRE_SMPNG:1.14
	RELENG_4_1_0_RELEASE:1.12.2.2
	RELENG_3_5_0_RELEASE:1.7.2.4
	RELENG_4_0_0_RELEASE:1.12
	RELENG_4:1.12.0.2
	RELENG_4_BP:1.12
	RELENG_3_4_0_RELEASE:1.7.2.3
	RELENG_3_3_0_RELEASE:1.7.2.3
	RELENG_3_2_PAO:1.7.2.1.0.2
	RELENG_3_2_PAO_BP:1.7.2.1
	RELENG_3_2_0_RELEASE:1.7.2.1
	RELENG_3_1_0_RELEASE:1.7.2.1
	RELENG_3:1.7.0.2
	RELENG_3_BP:1.7
	RELENG_3_0_0_RELEASE:1.7
	v0_4:1.1.1.1
	PICOBSD:1.1.1;
locks; strict;
comment	@# @;


1.18
date	2001.04.23.19.55.03;	author joe;	state dead;
branches;
next	1.17;

1.17
date	2001.04.22.23.58.46;	author joe;	state Exp;
branches;
next	1.16;

1.16
date	2000.12.23.19.33.13;	author joe;	state Exp;
branches;
next	1.15;

1.15
date	2000.12.23.16.53.35;	author joe;	state Exp;
branches;
next	1.14;

1.14
date	2000.07.01.13.51.22;	author roger;	state Exp;
branches;
next	1.13;

1.13
date	2000.07.01.04.40.01;	author roger;	state Exp;
branches;
next	1.12;

1.12
date	2000.02.08.08.24.59;	author luigi;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	99.08.28.01.33.13;	author peter;	state Exp;
branches;
next	1.10;

1.10
date	99.08.23.08.33.07;	author luigi;	state Exp;
branches;
next	1.9;

1.9
date	99.08.22.21.42.30;	author dwhite;	state Exp;
branches;
next	1.8;

1.8
date	99.02.12.20.35.08;	author abial;	state Exp;
branches;
next	1.7;

1.7
date	98.10.15.21.39.58;	author abial;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	98.09.29.11.58.54;	author abial;	state Exp;
branches;
next	1.5;

1.5
date	98.09.19.21.44.42;	author abial;	state Exp;
branches;
next	1.4;

1.4
date	98.09.07.19.00.14;	author abial;	state Exp;
branches;
next	1.3;

1.3
date	98.09.04.19.38.57;	author abial;	state Exp;
branches;
next	1.2;

1.2
date	98.09.03.10.40.27;	author abial;	state Exp;
branches;
next	1.1;

1.1
date	98.08.27.17.38.42;	author abial;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.08.27.17.38.42;	author abial;	state Exp;
branches;
next	;

1.7.2.1
date	99.02.05.12.15.00;	author abial;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	99.08.23.11.36.19;	author luigi;	state Exp;
branches;
next	1.7.2.3;

1.7.2.3
date	99.08.29.15.52.25;	author peter;	state Exp;
branches;
next	1.7.2.4;

1.7.2.4
date	2000.02.12.19.04.01;	author luigi;	state Exp;
branches;
next	1.7.2.5;

1.7.2.5
date	2000.07.01.04.41.44;	author roger;	state Exp;
branches;
next	1.7.2.6;

1.7.2.6
date	2000.07.01.14.09.23;	author roger;	state Exp;
branches;
next	;

1.12.2.1
date	2000.07.01.04.44.44;	author roger;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2000.07.01.13.54.34;	author roger;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2000.12.23.17.57.23;	author joe;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2000.12.23.19.35.47;	author joe;	state Exp;
branches;
next	1.12.2.5;

1.12.2.5
date	2001.01.26.20.57.23;	author luigi;	state Exp;
branches;
next	1.12.2.6;

1.12.2.6
date	2001.02.20.04.37.56;	author luigi;	state dead;
branches;
next	;


desc
@@


1.18
log
@MF4S: Sync with the developments that Luigi's been doing in -stable.
@
text
@#! /bin/sh -

#
# $FreeBSD: src/release/picobsd/build/clean,v 1.17 2001/04/22 23:58:46 joe Exp $
#
set -e

# Get a list of targets.
TARGETS=""
for i in ../* ; do
    if [ -d $i -a -f $i/PICOBSD ] ; then
	TARGETS="$TARGETS `basename $i`"
    fi
done

if [ $# -lt 1 ]; then
    echo "What to clean?"
    echo "Possible targets are:${TARGETS} or 'all'"
    exit 1
fi

if [ "$1" = "all" ]; then
    list=${TARGETS}
    old="old"
else
    list=$1
    old=$1
fi
if [ -f picobsd.bin ]; then
    mv -f picobsd.bin picobsd.bin.${old}
fi

rm -fr kernel kernel.gz fs.PICOBSD *.o *core *.db \
	.build.reply stage1.out build.status .image.list \
	floppy.tree loader
cd ..
rm -rf help/tmp_hlp
echo "===================== $0 tools started ===================="
for j in $list ; do
	echo "===================== $0 $j started ======================"
	(cd ${j}/crunch1; \
	if [ -f crunch1.mk ]; then \
		make -f crunch1.mk realclean || true ; \
	fi ; \
	make -f ../../build/Makefile.crunch clean)
	echo "=============== $0 $j completed successfuly =============="
done
@


1.17
log
@MFS4: Do not terminate if it fails to clean something.  (rev 1.12.2.5)
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.16 2000/12/23 19:33:13 joe Exp $
@


1.16
log
@Remove floppy.tree from the build directory.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.15 2000/12/23 16:53:35 joe Exp $
d43 1
a43 1
		make -f crunch1.mk realclean ; \
@


1.15
log
@Determine the names of the picobsd releases automatically.

Use the 'realclean' target in the crunch.mk file for cleaning the object
build tree.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.14 2000/07/01 13:51:22 roger Exp $
d33 3
a35 2
rm -f kernel kernel.gz fs.PICOBSD *.o *core *.db \
	.build.reply stage1.out build.status .image.list
@


1.14
log
@Add .image.list to the list of temporary files which can be deleted
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.13 2000/07/01 04:40:01 roger Exp $
d8 8
a15 1
TARGETS="dial net isp router bridge"
d17 2
a18 1
    echo "What to clean? Possible targets are ${TARGETS} or 'all'"
a37 6
for i in `ls -d tinyware/[a-z]*` ; do
	(cd ${i}; \
	if [ -f Makefile ]; then \
		make clean && make cleandepend;\
	fi)
done
d41 4
a44 2
	make -f ../../build/Makefile.crunch clean ; \
	)
@


1.13
log
@Add 'bridge' so we can clean up the bridge files too
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12 2000/02/08 08:24:59 luigi Exp $
d26 1
a26 1
	.build.reply stage1.out build.status
@


1.12
log
@Cleanup the build scripts.

Approved-by: jordan
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.11 1999/08/28 01:33:13 peter Exp $
d8 1
a8 1
TARGETS="dial net isp router"
@


1.12.2.1
log
@MFC:  Add 'bridge' to list of sections to clean
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12 2000/02/08 08:24:59 luigi Exp $
d8 1
a8 1
TARGETS="dial net isp router bridge"
@


1.12.2.2
log
@MFC: Add .image.list to list of files to delete
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12.2.1 2000/07/01 04:44:44 roger Exp $
d26 1
a26 1
	.build.reply stage1.out build.status .image.list
@


1.12.2.3
log
@MFC: Use the 'realclean' target in the crunch.mk file, and determine the
     names of the PicoBSD releases automatically.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12.2.2 2000/07/01 13:54:34 roger Exp $
d8 1
a8 8
# Get a list of targets.
TARGETS=""
for i in ../* ; do
    if [ -d $i -a -f $i/PICOBSD ] ; then
	TARGETS="$TARGETS `basename $i`"
    fi
done

d10 1
a10 2
    echo "What to clean?"
    echo "Possible targets are:${TARGETS} or 'all'"
d30 6
d39 2
a40 4
	if [ -f crunch1.mk ]; then \
		make -f crunch1.mk realclean ; \
	fi ; \
	make -f ../../build/Makefile.crunch clean)
@


1.12.2.4
log
@MFC: Remove a few extra things from the build directory that should be
     cleaned.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12.2.3 2000/12/23 17:57:23 joe Exp $
d33 2
a34 3
rm -fr kernel kernel.gz fs.PICOBSD *.o *core *.db \
	.build.reply stage1.out build.status .image.list \
	floppy.tree loader
@


1.12.2.5
log
@Do not terminate if it fails to clean something.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12.2.4 2000/12/23 19:35:47 joe Exp $
d43 1
a43 1
		make -f crunch1.mk realclean || true ; \
@


1.12.2.6
log
@Remove Makefile, it has been broken for quite some time and
its presence is confusing.
Remove "clean", its functions are now implemented by the main
"picobsd" script.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.12.2.5 2001/01/26 20:57:23 luigi Exp $
@


1.11
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
d30 1
a30 1
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel ; do
d33 1
a33 1
	     make clean && make cleandepend;\
d39 2
a40 3
	if [ -f Makefile ]; then \
	     make clean ; \
	fi)
@


1.10
log
@Additional cleanup of the picobsd scripts.
Also bump Version to 0.445
@
text
@d4 1
a4 1
#	$Id: clean,v 1.9 1999/08/22 21:42:30 dwhite Exp $
@


1.9
log
@Major PicoBSD update by luigi with some debugging help from myself.

. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by:	luigi
@
text
@d4 1
a4 1
#	$Id: clean,v 1.7.2.1 1999/02/05 12:15:00 abial Exp $
d8 4
a11 4
if [ $# -lt 1 ]
then
	echo "What to clean? Possible targets are 'dial', 'net', 'isp', 'router' or 'all'"
	exit 1
d14 3
a16 7
if [ "$1" = "all" ]
then
	list="dial net isp router"
	if [ -f picobsd.bin ]
	then
		mv -f picobsd.bin picobsd.bin.old
	fi
d18 5
a22 5
	list=$1
	if [ -f picobsd.bin ]
	then
		mv -f picobsd.bin picobsd.bin.$1
	fi
d25 2
a26 1
rm -f kernel kernel.kz fs.PICOBSD *.o *core *.db
d30 1
a30 2
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel
do
d32 2
a33 3
	if [ -f Makefile ]; \
	then \
		 make clean && make cleandepend;\
d36 1
a36 2
for j in $list
do
d39 2
a40 3
	if [ -f Makefile ]; \
	then \
		 make clean ; \
@


1.8
log
@Merge from RELENG_3.
@
text
@d4 1
a4 1
#	$Id: clean,v 1.7 1998/10/15 21:39:58 abial Exp $
@


1.7
log
@Various fixups and corrections to match the 3.0-RELEASE tree.

The PicoBSD version is now 0.42.
@
text
@d4 1
a4 1
#	$Id: clean,v 1.6 1998/09/29 11:58:54 abial Exp $
d33 1
a33 1
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel tools/dumpnlist
@


1.7.2.1
log
@Fixes to sync with upcoming 3.1-R. Approved by jkh.

* clean: don't clean unused tools/dumpnlist
* populate: don't install kvm_kernel.db, nor /stand/symbols.
@
text
@d4 1
a4 1
#	$Id: clean,v 1.7 1998/10/15 21:39:58 abial Exp $
d33 1
a33 1
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel
@


1.7.2.2
log
@MFC: cleanup in PicoBSD scripts, bump version to 0.445
@
text
@d4 1
a4 1
#	$Id: clean,v 1.10 1999/08/23 08:33:07 luigi Exp $
d8 4
a11 4
TARGETS="dial net isp router"
if [ $# -lt 1 ]; then
    echo "What to clean? Possible targets are ${TARGETS} or 'all'"
    exit 1
d14 7
a20 3
if [ "$1" = "all" ]; then
    list=${TARGETS}
    old="old"
d22 5
a26 5
    list=$1
    old=$1
fi
if [ -f picobsd.bin ]; then
    mv -f picobsd.bin picobsd.bin.${old}
d29 1
a29 2
rm -f kernel kernel.gz fs.PICOBSD *.o *core *.db \
	.build.reply stage1.out build.status
d33 2
a34 1
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel ; do
d36 3
a38 2
	if [ -f Makefile ]; then \
	     make clean && make cleandepend;\
d41 2
a42 1
for j in $list ; do
d45 3
a47 2
	if [ -f Makefile ]; then \
	     make clean ; \
@


1.7.2.3
log
@$Id$ -> $FreeBSD$
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.7.2.4
log
@MFC: sync Picobsd build structure with the one in -current.
This involves a cleanup of the build scripts, removing
common files from the individual trees and put them in a
common place, and remove unused stuff.
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.7.2.3 1999/08/29 15:52:25 peter Exp $
d30 1
a30 1
for i in `ls -d tinyware/[a-z]*` ; do
d39 3
a41 2
	make -f ../../build/Makefile.crunch clean ; \
	)
@


1.7.2.5
log
@MFC: Add 'bridge' so we can clean up the bridge files
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.7.2.4 2000/02/12 19:04:01 luigi Exp $
d8 1
a8 1
TARGETS="dial net isp router bridge"
@


1.7.2.6
log
@MFC: add .image.list to the files to be deleted
@
text
@d4 1
a4 1
# $FreeBSD: src/release/picobsd/build/clean,v 1.7.2.5 2000/07/01 04:41:44 roger Exp $
d26 1
a26 1
	.build.reply stage1.out build.status .image.list
@


1.6
log
@Better handling of "custom" setup.

Submitted by:	Randal Masutani <randal@@comtest.com>
@
text
@d4 1
a4 1
#	$Id: clean,v 1.5 1998/09/19 21:44:42 abial Exp $
d17 4
a20 1
	mv -f picobsd.bin picobsd.bin.old
d23 4
a26 1
	mv -f picobsd.bin picobsd.bin.$1
@


1.5
log
@Kill the remnants of DEVFS, since it's broken without the SLICE code...
Pity - it was _very_ handy.

This also required increasing of MFS size, so that PicoBSD consumes more
memory now...
@
text
@d4 1
a4 1
#	$Id: clean,v 1.4 1998/09/07 19:00:14 abial Exp $
d17 1
d20 1
d23 1
a23 2
rm -f kernel kernel.kz fs.PICOBSD picobsd.bin *.o *core *.db
rm -f picobsd.bin
a24 1
rm -f custom
d26 9
d38 5
a42 9
	for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel tools/dumpnlist ${j}/crunch1
	do
		(cd ${i}; \
		if [ -f Makefile ]; \
		then \
			 make clean && make cleandepend;\
		fi)
	done

@


1.4
log
@Change the way the help files are stored, and save ca. 30kB on the
"dial" floppy.

Submitted by:	Eric P. Scott <eps@@sirius.com>
@
text
@d4 1
a4 1
#	$Id: clean,v 1.3 1998/09/04 19:38:57 abial Exp $
d31 5
a35 1
		(cd ${i} && make clean && make cleandepend)
@


1.3
log
@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>
@
text
@d4 1
a4 1
#	$Id: clean,v 1.2 1998/09/03 10:40:27 abial Exp $
d25 1
@


1.2
log
@Minor fixes to 'clean' script.

Changed the 'build' script to use ../${TYPE}/conf/Makefile in order to
have true dependency of kernel image on the kernel config file.
@
text
@d4 1
a4 1
#	$Id: clean,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $
d24 1
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
#	$Id: clean,v 1.7 1998/08/19 07:05:23 abial Exp $
a22 1
rm -f build.status
d29 1
a29 1
		(cd ${i} && make clean && rm -f .depend)
@


1.1.1.1
log
@Initial import of PicoBSD v0.4 tree.
@
text
@@
