1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-29 08:36:40 +01:00
slackware-current/source/d/slacktrack/slacktrack-project/man/man.build
Patrick J Volkerding 646a5c1cbf Mon May 28 19:12:29 UTC 2018
a/pkgtools-15.0-noarch-13.txz:  Rebuilt.
  installpkg: default line length for --terselength is the number of columns.
  removepkg: added --terse mode.
  upgradepkg: default line length for --terselength is the number of columns.
  upgradepkg: accept -option in addition to --option.
ap/vim-8.1.0026-x86_64-1.txz:  Upgraded.
d/bison-3.0.5-x86_64-1.txz:  Upgraded.
e/emacs-26.1-x86_64-1.txz:  Upgraded.
kde/kopete-4.14.3-x86_64-8.txz:  Rebuilt.
  Recompiled against libidn-1.35.
n/conntrack-tools-1.4.5-x86_64-1.txz:  Upgraded.
n/libnetfilter_conntrack-1.0.7-x86_64-1.txz:  Upgraded.
n/libnftnl-1.1.0-x86_64-1.txz:  Upgraded.
n/links-2.16-x86_64-2.txz:  Rebuilt.
  Rebuilt to enable X driver for -g mode.
n/lynx-2.8.9dev.19-x86_64-1.txz:  Upgraded.
n/nftables-0.8.5-x86_64-1.txz:  Upgraded.
n/p11-kit-0.23.11-x86_64-1.txz:  Upgraded.
n/ulogd-2.0.7-x86_64-1.txz:  Upgraded.
n/whois-5.3.1-x86_64-1.txz:  Upgraded.
xap/network-manager-applet-1.8.12-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.1.0026-x86_64-1.txz:  Upgraded.
2018-05-31 23:39:35 +02:00

51 lines
1.9 KiB
Bash
Executable file

#!/bin/sh
###########################################################################
# Program: man.build
# Purpose: Create an nroff format file from slacktrack's Perl POD
# format manpage
# Author : Stuart Winter <mozes@slackware.com>
###########################################################################
# Information about man pages:
# http://www.fnal.gov/docs/products/ups/ReferenceManual/html/manpages.html
# which describes creating man pages in nroff format.
# However, it's easier (IMO) to create them in POD format.
###########################################################################
# Get version from the scripts
SLACKTRACKVERSION="$( grep VERSION= ../scripts/slacktrack | tr -d =,\",[:alpha:] | awk '{print $2}' )"
SLACKDTXTVERSION="$( grep VERSION= ../scripts/slackdtxt | tr -d =,\",[:alpha:] | awk '{print $2}' )"
# Turn /usr/doc/slacktrack-@VERSION@ into usr/doc/slacktrack-1.02
# You can't pipe sed into pod2man because pod2man then creates
# the man page's name as 'STANDARD INPUT(8)' rather than 'SLACKTRACK(8)'
sed s/@VERSION@/${SLACKTRACKVERSION}/g slacktrack.pod > SLACKTRACK.pod
sed s/@VERSION@/${SLACKTRACKVERSION}/g slackdtxt.pod > SLACKDTXT.pod
# Use pod2man to create an nroff compatible man page
pod2man \
--section=8 \
--release="$(grep "^# Date" ../scripts/slacktrack | rev | awk '{print $1}' | rev)" \
--center=' ' \
--date="slacktrack Version ${SLACKTRACKVERSION}" \
SLACKTRACK.pod 2>&1 > slacktrack.8
pod2man \
--section=8 \
--release="$(grep "^# Date" ../scripts/slackdtxt | rev | awk '{print $1}' | rev)" \
--center=' ' \
--date="slackdtxt Version ${SLACKDTXTVERSION}" \
SLACKDTXT.pod > slackdtxt.8
# If we specified -t at the command line then display the man page & exit
if [ "${1}" = "-t" ]; then
man ./slacktrack.8
man ./slackdtxt.8
rm -f slacktrack.8 slackdtxt.8
fi
# Delete the butchered .pod files
rm -f SLACKTRACK.pod SLACKDTXT.pod
# EOF