4 echo "Usage: $0 NAME.NUM.md" 1>&2
10 flagfile
="$srcdir/.md2man-works"
11 force_flagfile
="$srcdir/.md2man-force"
13 if [ ! -f "$flagfile" ]; then
14 # We test our smallest manpage just to see if the python setup works.
15 if "$srcdir/md-convert" --test "$srcdir/rsync-ssl.1.md" >/dev
/null
2>&1; then
18 outname
=`echo "$inname" | sed 's/\.md$//'`
19 if [ -f "$outname" ]; then
21 elif [ -f "$srcdir/$outname" ]; then
22 echo "Copying $srcdir/$outname"
23 cp -p "$srcdir/$outname" .
26 echo "ERROR: $outname cannot be created."
27 if [ -f "$HOME/build_farm/build_test.fns" ]; then
28 exit 0 # No exit errorno to avoid a build failure in the samba build farm
36 if [ -f "$force_flagfile" ]; then
37 opt
='--force-link-text'
42 "$srcdir/md-convert" $opt "$srcdir/$inname"