File: build-manpages.sh

package info (click to toggle)
emboss 6.6.0%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 571,584 kB
  • sloc: ansic: 460,579; java: 29,383; perl: 13,573; sh: 12,753; makefile: 3,294; csh: 706; asm: 351; xml: 239; pascal: 237; modula3: 8
file content (16 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e
# Copyleft 2007 Charles Plessy, do what you want with this trivial file.

PACKAGE=$(dpkg-parsechangelog -ldebian/changelog | grep Source: | cut -f2 -d' ')
VERSION=$(dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d-)
ORIGTARGZ=../${PACKAGE}_${VERSION}.orig.tar.gz

rm -f debian/$PACKAGE.manpages

for FILE in $(ls emboss/acd/*.acd)
  do
  ACD=$(basename $FILE .acd)
  ./debian/acd2docbook.pl $FILE ${VERSION} \
  | xsltproc --nonet --param man.charmap.use.subset 0 -o debian/manpages/ -
  echo "debian/manpages/$ACD.1e" >> debian/$PACKAGE.manpages
done