distfile=$distribution
shift
fi
+
ad_parse_distribution $distribution false
-ad_log " Distribution: $distribution $dist_version"
-ad_log ""
-ad_process_distdefs
if test $# != 0; then
dist_version="${1}";
fi
+ad_log " Distribution: $distribution $dist_version"
+ad_log ""
+
+ad_process_distdefs
+
ad_debug "Preparing source tree for configuration and compilation..."
ad_debug "Preparing $distribution distribution version $dist_version"
cat << EOF > tmp.php
<?php \$page="$4"; \$dest="$1"; \$type="$3"; require "$2"; ?>
EOF
-php -f tmp.php >$5.tmp
-mv $5.tmp $5
+php -f tmp.php >"$5".tmp
+mv "$5".tmp "$5"
rm -f tmp.php
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
for i in $dfiles
do
# Get library name
- name=`grep "@LIBRARY=" $i |cut -d= -f2`
+ name=`grep "@LIBRARY=" $i |cut -d= -f2-`
fname=`grep "@FILENAME=" $i |cut -d= -f2`
links=`grep "@LINK=" $i |cut -d= -f2 |cut -d: -f1`
echo "<a href="$fname"><img src="box.gif" border="0" alt="">$name</a><br />" >>$DST/index.tmpl
for k in $links
do
- n=`grep $k $i |cut -d= -f2 |cut -d: -f2`
+ n=`grep $k $i |cut -d= -f2 |cut -d: -f2-`
echo "<li><a href="$k">$n</a>" >>$DST/$fname.links
echo " <a href="$k"><img src="box2.gif" border="0" alt="">$n</a><br />" >>$DST/index.tmpl
done
files=`find $DST -name ""$i"-*.html"`
for k in $files
do
- sh gen.sh $DST gen_index.php 0 $k $k
+ sh gen.sh $DST gen_index.php 0 "$k" "$k"
done
rm -f $DST/$i-index.tmpl
for i in $dfiles
do
# Get library name
- name=`grep "@LIBRARY=" $i |cut -d= -f2`
+ name=`grep "@LIBRARY=" $i |cut -d= -f2-`
fname=`grep "@FILENAME=" $i |cut -d= -f2`
# Generate links for this library