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