5 CONTRIB_PATH
= ${.CURDIR
:H
:H
}/contrib
/tzcode
7 VERSION
!=cat
${CONTRIB_PATH}/version
11 tzselect
: tzselect.ksh
13 -e
's|#!/bin/bash|#!/bin/sh|g' \
14 -e
's|AWK=[^}]*|AWK=/usr/bin/awk|g' \
15 -e
's|\(PKGVERSION\)=.*|\1='\''(tzcode) '\''|' \
16 -e
's|\(REPORT_BUGS_TO\)=.*|\1=tz@iana.org|' \
17 -e
's|TZDIR=[^}]*|TZDIR=/usr/share/lib/zoneinfo|' \
18 -e
's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \
21 ${.CURDIR
}/tzselect
.8: ${CONTRIB_PATH}/tzselect
.8
23 -e
's@/usr/local/etc@/usr/share/lib@' \
24 -e
's@newctime(3), @@' \
28 # FIXME: This is a gross hack to generate a cleaner version of the manpage
29 # in the current directory so that the install target finds it and installs
31 all: ${.CURDIR
}/tzselect
.8
33 CLEANFILES
+= tzselect
.8
35 .
include <unleashed.mk
>