From e3b7dcbb7eea0f5d5fed8f8414f6d0dfa2835e42 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 17 Jul 2024 00:01:35 -0600 Subject: [PATCH] Create fdfind symlinks in deb package To be consistent with the offical debian pckage --- scripts/create-deb.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/create-deb.sh b/scripts/create-deb.sh index 6abab00..14303f0 100755 --- a/scripts/create-deb.sh +++ b/scripts/create-deb.sh @@ -57,6 +57,12 @@ install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICE install -Dm644 "CHANGELOG.md" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog" gzip -n --best "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog" +# Create symlinks so fdfind can be used as well: +ln -s "/usr/bin/fd" "${DPKG_DIR}/usr/bin/fdfind" +ln -s './fd.bash' "${DPKG_DIR}/usr/share/bash-completion/completions/fdfind" +ln -s './fd.fish' "${DPKG_DIR}/usr/share/fish/vendor_completions.d/fdfind.fish" +ln -s './_fd' "${DPKG_DIR}/usr/share/zsh/vendor-completions/_fdfind" + cat > "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/copyright" <