File openswan_03_build-groff.dif of Package openswan
diff -Nur openswan-2.6.37-orig//docs/utils/manxml2html openswan-2.6.37/docs/utils/manxml2html --- openswan-2.6.37-orig//docs/utils/manxml2html 2011-10-28 23:11:53.000000000 +0200 +++ openswan-2.6.37/docs/utils/manxml2html 2011-12-09 10:30:04.000000000 +0100 @@ -27,7 +27,7 @@ cp $f $dir/$b $TOPDIR/packaging/utils/manlink $f | while read from to do - (cd $dir; ln -s ../$f $to) + (cd $dir; ln -sf ../$f $to) done done @@ -36,9 +36,10 @@ echo Processing $f # man2html <$f | sed 's;'"$refpat"';"\2.\1.html";g' >$f.html docbook2html -u $f + sed -i -e "s/\(ipsec[^(<]*\)\(<[^>]\+>\)\?(\([0-9]\))/<a href=\"$dir\/\1.\3.html\">\1(\3)<\/a>\2/g" $f b=`basename $f` - newf=`echo $b|sed s/xml$/html/` - mv $newf $dir +# newf=`echo $b|sed s/xml$/html/` +# mv $newf $dir done # remove the source files (must wait until after all builds, due to symlinks)