swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Tip revision: e06cdba54b42245aa348405f45463a0c4c08f39a authored by Colin Adams on 07 December 2015, 07:21:11 UTC
Base and tone curves for Nikon D810
Base and tone curves for Nikon D810
Tip revision: e06cdba
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' \
> tmp.$$$$ \
&& mv -f tmp.$$$$ "$output"