Revision 6b834c1209c766116e9ce4abdb2943d1d0d055f2 authored by Roman Lebedev on 17 October 2016, 08:19:50 UTC, committed by Roman Lebedev on 17 October 2016, 08:19:50 UTC
* upstream/pr/1312:
  Add Pentax K-70 support
2 parent s e46c1b7 + 5090969
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