aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/gzip/install_scripts.sh
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-09 14:20:58 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-09 14:20:58 -0400
commit5fd83771641d15c418f747bd343ba6738d3875f7 (patch)
tree5abf0f78f680d9837dbd93d4d4c3933bb7509599 /file_cmds/gzip/install_scripts.sh
downloadapple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.tar.gz
apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.zip
Import macOS userland
adv_cmds-176 basic_cmds-55 bootstrap_cmds-116.100.1 developer_cmds-66 diskdev_cmds-667.40.1 doc_cmds-53.60.1 file_cmds-321.40.3 mail_cmds-35 misc_cmds-34 network_cmds-606.40.1 patch_cmds-17 remote_cmds-63 shell_cmds-216.60.1 system_cmds-880.60.2 text_cmds-106
Diffstat (limited to 'file_cmds/gzip/install_scripts.sh')
-rw-r--r--file_cmds/gzip/install_scripts.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/file_cmds/gzip/install_scripts.sh b/file_cmds/gzip/install_scripts.sh
new file mode 100644
index 0000000..6e8e550
--- /dev/null
+++ b/file_cmds/gzip/install_scripts.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -e
+
+INSTALL_MAN1_DIR=${INSTALL_ROOT}${GZIP_PREFIX}/share/man/man1
+
+install -d -m 0755 "${INSTALL_MAN1_DIR}"
+for script in ${GZIP_SCRIPTS}; do
+ printf "Installing ${script} ...\n"
+ install -m 0755 ${SRCROOT}/gzip/${script} ${INSTALL_DIR}/${script}
+ install -m 0644 ${SRCROOT}/gzip/${script}.1 ${INSTALL_MAN1_DIR}/${script}.1
+done
+
+set ${GZIP_LINKS}
+while [ $# -ge 2 ]; do
+ l=$1
+ shift
+ t=$1
+ shift
+ printf "Creating link: ${t} -> ${l} ...\n"
+ ln -f ${INSTALL_DIR}/${l} ${INSTALL_DIR}/${t}
+ ln -f ${INSTALL_MAN1_DIR}/${l}.1 ${INSTALL_MAN1_DIR}/${t}.1
+done