+Sat Apr 23 12:49:09 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
+
+ * Autodist 1.2.1.
+
+ * Fixed 'noprocess' sed script.
+
Fri Apr 22 20:23:06 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
* Autodist 1.2.
o Perhaps ability to partially re-license the source tree. Now all files
will be processed if 'license-header' is used.
+o Better 'noprocess' so that it would work with directories recursively,
+ such as noprocess foo/bar, would not process anything under foo/bar.
+
o Perhaps output autodist.log when processing the source tree.
# Take away noprocess list
if test -f autodist.noprocess; then
- files=`echo $files | sh autodist.noprocess` || exit 1
+ files=`echo $files" " | sh autodist.noprocess` || exit 1
fi
for ff in $files
# Take away noprocess list
if test -f autodist.noprocess; then
- files=`echo $files | sh autodist.noprocess` || exit 1
+ files=`echo $files" " | sh autodist.noprocess` || exit 1
fi
for ff in $files
ad_debug ">ad_process_noprocess"
+ cur=`pwd`
+ cd $am_distdir || exit 1
for i in $noprocess
do
# Escape
ie=`echo $i | sed 's/\\//\\\\\//g'` || exit 1
- n="$n -e 's/$am_distdir\\/$ie//'"
+ n="$n -e 's/$am_distdir\\/$ie //'"
np=true
done
+ cd $cur || exit 1
rm -f autodist.noprocess
if test x$np = xtrue; then
preparation or during distribution packaging. This directive is optional.
One or more file can be specified in the 'noprocess' directive. Zero or
more 'noprocess' directives can be used in distribution. The <filename>
-can be a single file, a single directory or a regular expression that
-will match several files and/or directories. If directory is specified
-then all files inside the directory will not be processed.
+can be a single file or a regular expression that will match several files.
+Note that, in current Autodist version 'noprocess' cannot be used to
+specify directories.
Example:
@example
noprocess autodist.texi
+noprocess apps/foo/*
@end example
-Autodist will not process 'autodist.texi' file.
+Autodist will not process 'autodist.texi' file, and any file that match
+'apps/foo/*'. Note that, any subdirectory under 'apps/foo/' will not
+match, and will be processed.
-Note that, 'noprocess' directive cannot be used to disallow processing
-of any file with '.ad' suffix.
+Also note that, 'noprocess' directive cannot be used to disallow
+processing of any file with '.ad' suffix.
@section Directive: pre-hook <filename> [...]