swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Raw File
Tip revision: 97b7bb74f6b9a2a597f731583e16283f1b1703b6 authored by Tobias Ellinghaus on 30 November 2014, 15:33:28 UTC
Silence a CMake warning
Tip revision: 97b7bb7
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