Skip to content

Commit e3b7dcb

Browse files
committed
Create fdfind symlinks in deb package
To be consistent with the offical debian pckage
1 parent 55d2e78 commit e3b7dcb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/create-deb.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICE
5757
install -Dm644 "CHANGELOG.md" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog"
5858
gzip -n --best "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/changelog"
5959

60+
# Create symlinks so fdfind can be used as well:
61+
ln -s "/usr/bin/fd" "${DPKG_DIR}/usr/bin/fdfind"
62+
ln -s './fd.bash' "${DPKG_DIR}/usr/share/bash-completion/completions/fdfind"
63+
ln -s './fd.fish' "${DPKG_DIR}/usr/share/fish/vendor_completions.d/fdfind.fish"
64+
ln -s './_fd' "${DPKG_DIR}/usr/share/zsh/vendor-completions/_fdfind"
65+
6066
cat > "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/copyright" <<EOF
6167
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
6268
Upstream-Name: fd
@@ -109,7 +115,7 @@ Maintainer: ${MAINTAINER}
109115
Homepage: ${REPO}
110116
Architecture: ${DPKG_ARCH}
111117
Provides: fd
112-
Conflicts: ${DPKG_CONFLICTS}
118+
Conflicts: ${DPKG_CONFLICTS} fdfind
113119
Description: simple, fast and user-friendly alternative to find
114120
fd is a program to find entries in your filesystem.
115121
It is a simple, fast and user-friendly alternative to find.

0 commit comments

Comments
 (0)