summaryrefslogtreecommitdiff
path: root/games/adl/fixman.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-02-20 09:43:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-20 09:43:56 +0700
commit5ea3db7bec2830a9ec0f7dd011ea077ae748c6cc (patch)
treee191766bbd5a5b44ef53cae579dd92fee5a59795 /games/adl/fixman.sh
parentdb2ba2f0b34a84949844e5f4e4fa7b97a6805ee4 (diff)
downloadslackbuilds-5ea3db7bec2830a9ec0f7dd011ea077ae748c6cc.tar.gz
games/adl: Added (compiler and runtime).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/adl/fixman.sh')
-rw-r--r--games/adl/fixman.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/games/adl/fixman.sh b/games/adl/fixman.sh
new file mode 100644
index 0000000000..a500103ea0
--- /dev/null
+++ b/games/adl/fixman.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# fixman.sh - part of SBo adl build. B Watson (yalhcru@gmail.com), WTFPL.
+
+# needs polyglotman.
+
+# have to install man pages manually. Unfortunately they're preformatted,
+# and look like crap with Slackware's man command, so I wrote this little
+# script to clean them up.
+
+# If ever needed again, the commands to clean up the man pages:
+# tar xvf adl.tar.Z
+# mkdir -p man
+# for i in adl/man/*.6; do sh fixman.sh $i > man/`basename $i`; done
+# rm -rf adl
+
+# This script needs polyglotman installed, and I don't want to list that
+# in REQUIRES, so I include the results of fixman.sh instead of running
+# it in the SlackBuild.
+
+# in English: each file is converted to perl POD format using rman, then
+# rman's output is cleaned up and piped to pod2man, which produces roff
+# man page source on stdout.
+
+VERSION=${VERSION:-19930322}
+
+[ -z "$1" ] && echo "$0 requires a filename argument" 2>&1 && exit 1
+
+name=$( echo $1 | sed 's,\..*,,' | tr a-z A-Z )
+rman -f pod $1 | \
+ perl -ple 's,\s+, ,g; s,^\s*,,; s,^(=head1)\s+(.*)$,$1." ".uc($2),e' |
+ pod2man -s6 -r$VERSION --stderr -n$name -cSlackBuilds.org