mirror of
https://github.com/eza-community/eza.git
synced 2025-08-04 17:08:42 +00:00
feature(devtools): add completion files in deb packaging script
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
This commit is contained in:
parent
9f05854814
commit
641c8e7aa5
1 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,9 @@ for ARCH in "${!TARGETS[@]}"; do
|
|||
mkdir -p "${DEB_TMP_DIR}${DOCDIR}/man5"
|
||||
mkdir -p "${DEB_TMP_DIR}/DEBIAN"
|
||||
mkdir -p "${DEB_TMP_DIR}/usr/share/doc/${NAME}"
|
||||
mkdir -p "${DEB_TMP_DIR}/usr/share/bash-completion/completions/"
|
||||
mkdir -p "${DEB_TMP_DIR}/usr/share/fish/vendor_completions.d/"
|
||||
mkdir -p "${DEB_TMP_DIR}/usr/share/zsh/vendor-completions/"
|
||||
chmod 755 -R "${DEB_TMP_DIR}"
|
||||
|
||||
echo " -> extract executable"
|
||||
|
@ -60,6 +63,11 @@ for ARCH in "${!TARGETS[@]}"; do
|
|||
gzip -cn9 target/man/eza_colors-explanation.5 > "${DEB_TMP_DIR}${DOCDIR}man5/eza_colors-explanation.5.gz"
|
||||
chmod 644 "${DEB_TMP_DIR}${DOCDIR}"/**/*.gz
|
||||
|
||||
echo " -> copy completions"
|
||||
cp completions/bash/eza "${DEB_TMP_DIR}/usr/share/bash-completion/completions/"
|
||||
cp completions/fish/eza.fish "${DEB_TMP_DIR}/usr/share/fish/vendor_completions.d/"
|
||||
cp completions/zsh/_eza "${DEB_TMP_DIR}/usr/share/zsh/vendor-completions/"
|
||||
|
||||
echo " -> create control file"
|
||||
touch "${DEB_TMP_DIR}/DEBIAN/control"
|
||||
cat > "${DEB_TMP_DIR}/DEBIAN/control" <<EOM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue