# 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 "licenseh: $licenseh"
if test x$2 = xfalse; then
+ # Take rest of the stuff from top distribution
+
+ # We take precedence on defined and undefined distdefs. Remove
+ # undefined distdefs if we have defined them.
+ for d in $defs
+ do
+ ad_debug "defining undefined $d distdef"
+ undistdefs=`echo $undistdefs | sed s/$d//g`
+ done
+
# Get distribution name
dname=`sed 's/^[ ]*//' < $distdir/$1 | grep -v "^#" \
| grep "name " | cut -d' ' -f2-`
for i in $undistdefs
do
ad_debug "undefining $i distdef"
- distdefs=`echo $distdefs | sed s/$i//`
+ distdefs=`echo $distdefs | sed s/$i//g`
done
rm -f autodist.tmp.defs
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
fi
ad_process_distdefs
echo "Distdefs:" 1>&2;
- echo "${distdefs}";
+ for i in $distdefs
+ do
+ echo "$i";
+ done
exit 0;;
-i | --init)