File: createpack.hook.sh

package info (click to toggle)
arename 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,112 kB
  • sloc: perl: 640; sh: 585; makefile: 147
file content (28 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# Script called by createpack.sh to include additional files in tarballs.
POSIX_SHELL=${POSIX_SHELL:-"/bin/sh"}

export LC_ALL=C
umask 022

MAKE="${MAKE:-make}"

mkdir -p "${COMMON}"

printf 'Generating VERSION...\n'
printf '%s\n' "${version#v}" > "${COMMON}"/VERSION

printf 'Generating Perl scripts...\n'
${MAKE} genperlscripts
printf 'Generating manuals...\n'
${MAKE} doc
printf 'Including prebuild Perl scripts...\n'
cp ARename.pm ataglist arename "${COMMON}"
printf 'Including prebuild manuals...\n'
cp *.1 *.html "${COMMON}"

printf 'Tweaking permissions for additional files...\n'
find "${COMMON}" -type f -exec chmod 0664 '{}' ';'

tar rf "${TARNAME}" "${COMMON}"
rm -r "${COMMON}"