Revision 50d91bdfc94cb9d3aa01634ac0b003d76e799bf1 authored by Tobias Ellinghaus on 04 May 2017, 21:56:48 UTC, committed by Tobias Ellinghaus on 04 May 2017, 21:56:48 UTC
1 parent c2e0a27
Raw File
makeman.sh
#!/bin/sh

set -e;

input="$1"
authors="$2"
output="$3"

r=`sed -n 's,.*\$Release: \(.*\)\$$,\1,p' "$input"`;
d=`sed -n 's,/,-,g;s,.*\$Date: \(..........\).*,\1,p' "$input"`;
D=""
if [ -n "$d" ]; then
  D="--date=$d"
fi

pod2man --utf8 --release="darktable $r" --center="darktable" $D "$input" \
  | sed -e '/.*DREGGNAUTHORS.*/r '"$authors" | sed -e '/.*DREGGNAUTHORS.*/d' \
  > "$output" || rm "$output"
back to top