summaryrefslogtreecommitdiff
path: root/mcon/U/Extractall.U
blob: eb69b7572f77d84c1cddb348a74293e291797b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
?RCS: $Id: Extractall.U,v 3.0.1.1 1997/02/28 15:00:43 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS: 
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: Extractall.U,v $
?RCS: Revision 3.0.1.1  1997/02/28  15:00:43  ram
?RCS: patch61: created
?RCS:
?X:
?X: If extraction has been requested, load the configuration file, perform
?X: the extraction and exit.
?X:
?X: This unit was originally a part of Options.U. It had to be removed from
?X: it to prevent a dependency cycle: Extract -> src -> Options -> Extract
?X: The Begin.U unit now requires us before beginning to do anything
?X: interesting, to ensure proper semantics. -- RAM, 15/03/96
?X:
?MAKE:Extractall: Extract Options rsrc
?MAKE:	-pick wipe $@ %<
?T:config
: extract files and exit if asked to do so
case "$extractsh" in
true)
?X: Undo the forced silent=true when -S was supplied, by probing realsilent
?X: which was set iff -s was also given. See Options.U for details.
	case "$realsilent" in
	true) ;;
	*) exec 1>&4;;
	esac
	case "$config_sh" in
	'') config_sh='config.sh'; config="$rsrc/config.sh";;
	/*) config="$config_sh";;
	*) config="$rsrc/$config_sh";;
	esac
	echo " "
	echo "Fetching answers from $config_sh..."
	. $config
	test "$override" && . ./optdef.sh
	echo " "
?X: extract has to be run from the top directory, not within UU.
	cd ..
	. UU/extract
	rm -rf UU
	echo "Done."
	exit 0
	;;
esac