mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
8df5dcbc91
Delete pinstall and convert the entire tree to use the install program found by configure (falling back on install-sh in the local tree). This means that we have to pre-create directories with install -d. Also redo the install and dest rules to be lists of install rules rather than dependencies driving separate make rules so that running make install will always update the target directory with the current code, even if there are files in the install area that are newer. Stop installing libafssetpag; we're about to kill it in favor of a different library. Remove some djgpp rules.
53 lines
1.6 KiB
Bash
53 lines
1.6 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Install a man page, but fixing up paths as we go. All of the man pages
|
|
# are written to use the Transarc paths, and this script fixes those paths to
|
|
# be correct for the chosen configure options as the man pages are installed.
|
|
# Takes the source man page file and the destination path as arguments.
|
|
|
|
set -e
|
|
|
|
manpage="$1"
|
|
dest="$2"
|
|
|
|
INSTALL="@INSTALL@"
|
|
install="@INSTALL_DATA@"
|
|
|
|
# We have to include all of the variables here since several of them refer to
|
|
# each other and this is the only way we get them all expanded.
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
datarootdir=@datarootdir@
|
|
bindir=@bindir@
|
|
includedir=@includedir@
|
|
libdir=@libdir@
|
|
libexecdir=@libexecdir@
|
|
localstatedir=@localstatedir@
|
|
mandir=@mandir@
|
|
sbindir=@sbindir@
|
|
sysconfdir=@sysconfdir@
|
|
afsbackupdir=@afsbackupdir@
|
|
afsbosconfigdir=@afsbosconfigdir@
|
|
afsconfdir=@afsconfdir@
|
|
afsdbdir=@afsdbdir@
|
|
afslocaldir=@afslocaldir@
|
|
afslogsdir=@afslogsdir@
|
|
afssrvbindir=@afssrvbindir@
|
|
afskerneldir=@afskerneldir@
|
|
afssrvlibexecdir=@afssrvlibexecdir@
|
|
afssrvsbindir=@afssrvsbindir@
|
|
viceetcdir=@viceetcdir@
|
|
|
|
# Substitute the paths into a local temporary file and then install it with
|
|
# $install.
|
|
sed -e "s%/usr/afs/local/BosConfig%${afsbosconfigdir}/BosConfig%g" \
|
|
-e "s%/usr/afs/etc%${afsconfdir}%g" \
|
|
-e "s%/usr/afs/backup%${afsbackupdir}%g" \
|
|
-e "s%/usr/afs/bin%${afssrvlibexecdir}%g" \
|
|
-e "s%/usr/afs/db%${afsdbdir}%g" \
|
|
-e "s%/usr/afs/local%${afslocaldir}%g" \
|
|
-e "s%/usr/afs/logs%${afslogsdir}%g" \
|
|
-e "s%/usr/vice/etc%${viceetcdir}%g" "$manpage" > "$manpage".tmp
|
|
$install "$manpage".tmp "$dest"
|
|
rm "$manpage".tmp
|