swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Raw File
Tip revision: c3d5e0332031a18e9efa3d612e37707b2b0ed904 authored by johannes hanika on 22 December 2015, 12:18:20 UTC
translations: drop the ones with >= 10% untranslated strings
Tip revision: c3d5e03
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"
back to top