Annotation of embedaddon/mtr/build-aux/mangen.sh, revision 1.1.1.2
1.1 misho 1: #!/bin/sh
2:
3: #
4: # Generate the man pages.
5: #
6: # We are just here to substitute the @VERSION@ string with our real version.
7: #
8:
9: if [ $# -lt 3 ]; then
10: echo Usage: mangen.sh VERSION IN OUT
11: exit 1
12: fi
13:
1.1.1.2 ! misho 14: VERSION=$1
! 15: IN=$2
! 16: OUT=$3
! 17:
! 18: #
! 19: # MacOS's groff is missing .UR and .UE support, which makes
! 20: # URL completely disappear from man pages. We need to strip
! 21: # those codes out when building for MacOS
! 22: #
! 23: if [ $(uname -s) = "Darwin" ]; then
! 24: RMURUE='-e s/\.UR.//g -e s/\.UE//g'
! 25: else
! 26: RMURUE=""
! 27: fi
! 28:
! 29: sed -e "s|@VERSION[@]|$VERSION|g" $RMURUE $IN >$OUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>