summaryrefslogtreecommitdiff
path: root/mcon
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-08-25 21:54:31 +0000
committerrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2006-08-25 21:54:31 +0000
commit8e0de883d7513feefa92175f24b73d496ea0e93b (patch)
tree31f7ac5c912985ea54c4831b91298a0086f4e062 /mcon
parent65d0d69d2eaf1288f980ab404077792db6c5cdb8 (diff)
Let metaconfig use the MANIFEST file if there is no MANIFEST.new.
The MANIFEST.new file is necessary when using the "pat" tools, but not when running metaconfig by itself. git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@4 190e5f8e-a817-0410-acf6-e9863daed9af
Diffstat (limited to 'mcon')
-rwxr-xr-xmcon/man/mconfig.SH8
-rwxr-xr-xmcon/mconfig.SH5
2 files changed, 12 insertions, 1 deletions
diff --git a/mcon/man/mconfig.SH b/mcon/man/mconfig.SH
index 059091b..44a6ae5 100755
--- a/mcon/man/mconfig.SH
+++ b/mcon/man/mconfig.SH
@@ -159,7 +159,8 @@ your .SH file).
.IP \(bu
Create a MANIFEST.new file in your top level directory that lists all the
files in your package. This file will remain private and will not be
-part of the final distribution.
+part of the final distribution. (As a convenience, the MANIFEST file will
+be used by \fImetaconfig\fR if there is no MANIFEST.new file yet.)
The filename should be the first field on each line.
After some whitespace you can add a short comment describing your file.
Only source files should be listed in there. The special file
@@ -972,6 +973,11 @@ it uses its units and your source code to produce all the needed configuration
files. If you intend to write new units, you should have a good understanding
of the whole scheme.
.PP
+If there is no MANIFEST.new file, \fImetaconfig\fR will try to use the
+MANIFEST file instead, for convenience. Everywhere we mention MANIFEST.new,
+it can be understood as MANIFEST provided there is no MANIFEST.new file
+found at the root of your package.
+.PP
Assuming your MANIFEST.new file is properly set and lists all the source
files you wish to configure, and that you have run \fIpackint\fR in your
root source directory to create a \fI.package\fR file, you may run
diff --git a/mcon/mconfig.SH b/mcon/mconfig.SH
index 8fb6095..140fb6e 100755
--- a/mcon/mconfig.SH
+++ b/mcon/mconfig.SH
@@ -119,6 +119,11 @@ sub init {
sub init_constants {
$NEWMANI = 'MANIFEST.new'; # List of files to be scanned
$MANI = 'MANIFEST'; # For manifake
+
+ # The distinction between MANIFEST.new and MANIFEST can make sense
+ # when the "pat" tools are used, but if only metaconfig is used, then
+ # we can very well leave without a MANIFEST.new. --RAM, 2006-08-25
+ $NEWMANI = $MANI if -f $MANI && ! -f $NEWMANI;
}
# Record the exceptions -- almost all symbols but these are lower case