swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Raw File
Tip revision: 66532efe5d632cf20d38cf69bdcbcb3dfcd64ee2 authored by johannes hanika on 24 August 2011, 09:14:07 UTC
needed to adjust page size of hasselblad for some strange reason.
Tip revision: 66532ef
makeman.sh
input=$1
config=$2
authors=$3
output=$4
version=$(cat $config | grep PACKAGE_VERSION | head -1 | cut -f 3 -d" " | tr -d "\"")
set -e; \
  d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $input`; \
  pod2man $input \
  | sed 's/^\.TH .*/.TH DARKTABLE 1 "'"$$d"'" "darktable-'$version'" "darktable"/' \
  | sed -e '/.*DREGGNAUTHORS.*/r '"$authors" | sed -e '/.*DREGGNAUTHORS.*/d' \
  > tmp.$$$$ \
  && mv -f tmp.$$$$ $output

back to top