diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:14:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:14:31 +0000 |
commit | 2d5707c7479eacb3b1ad98e01b53f56a88f8fb78 (patch) | |
tree | d9c334e83692851c02e3e1b8e65570c97bc82481 /maybe-make-man | |
parent | Initial commit. (diff) | |
download | rsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.tar.xz rsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.zip |
Adding upstream version 3.2.7.upstream/3.2.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'maybe-make-man')
-rwxr-xr-x | maybe-make-man | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/maybe-make-man b/maybe-make-man new file mode 100755 index 0000000..0dc1730 --- /dev/null +++ b/maybe-make-man @@ -0,0 +1,35 @@ +#!/bin/sh + +if [ $# != 1 ]; then + echo "Usage: $0 NAME.NUM.md" 1>&2 + exit 1 +fi + +inname="$1" +srcdir=`dirname "$0"` +flagfile="$srcdir/.md2man-works" + +if [ ! -f "$flagfile" ]; then + # We test our smallest manpage just to see if the python setup works. + if "$srcdir/md-convert" --test "$srcdir/rsync-ssl.1.md" >/dev/null 2>&1; then + touch $flagfile + else + outname=`echo "$inname" | sed 's/\.md$//'` + if [ -f "$outname" ]; then + exit 0 + elif [ -f "$srcdir/$outname" ]; then + echo "Copying $srcdir/$outname" + cp -p "$srcdir/$outname" . + exit 0 + else + echo "ERROR: $outname cannot be created." + if [ -f "$HOME/build_farm/build_test.fns" ]; then + exit 0 # No exit errorno to avoid a build failure in the samba build farm + else + exit 1 + fi + fi + fi +fi + +"$srcdir/md-convert" "$srcdir/$inname" |