]>
Commit | Line | Data |
---|---|---|
00337e45 A |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | INSTALL_MAN1_DIR=${INSTALL_ROOT}${GZIP_PREFIX}/share/man/man1 | |
5 | ||
6 | install -d -m 0755 "${INSTALL_MAN1_DIR}" | |
7 | for 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 | |
11 | done | |
12 | ||
13 | set ${GZIP_LINKS} | |
14 | while [ $# -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 | |
22 | done |