]> git.saurik.com Git - apple/file_cmds.git/blame - gzip/install_scripts.sh
file_cmds-264.50.1.tar.gz
[apple/file_cmds.git] / gzip / install_scripts.sh
CommitLineData
00337e45
A
1#!/bin/sh
2set -e
3
4INSTALL_MAN1_DIR=${INSTALL_ROOT}${GZIP_PREFIX}/share/man/man1
5
6install -d -m 0755 "${INSTALL_MAN1_DIR}"
7for script in ${GZIP_SCRIPTS}; do
8 printf "Installing ${script} ...\n"
9 install -m 0755 ${SRCROOT}/gzip/${script} ${INSTALL_DIR}/${script}
10 install -m 0644 ${SRCROOT}/gzip/${script}.1 ${INSTALL_MAN1_DIR}/${script}.1
11done
12
13set ${GZIP_LINKS}
14while [ $# -ge 2 ]; do
15 l=$1
16 shift
17 t=$1
18 shift
19 printf "Creating link: ${t} -> ${l} ...\n"
20 ln -f ${INSTALL_DIR}/${l} ${INSTALL_DIR}/${t}
21 ln -f ${INSTALL_MAN1_DIR}/${l}.1 ${INSTALL_MAN1_DIR}/${t}.1
22done