From 7c5aaa38e204b3d1c3c00c54906182f715149ea8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 25 Dec 2024 23:41:54 +0900 Subject: [PATCH] dist: include zsh completion Signed-off-by: Ophestra --- dist/install.sh | 2 ++ dist/release.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/install.sh b/dist/install.sh index c8149a2..9694969 100755 --- a/dist/install.sh +++ b/dist/install.sh @@ -10,3 +10,5 @@ install -vDm6511 "bin/fsu" "${FORTIFY_INSTALL_PREFIX}/usr/bin/fsu" if [ ! -f "${FORTIFY_INSTALL_PREFIX}/etc/fsurc" ]; then install -vDm0400 "fsurc.default" "${FORTIFY_INSTALL_PREFIX}/etc/fsurc" fi + +install -vDm0644 "comp/_fortify" "${FORTIFY_INSTALL_PREFIX}/usr/share/zsh/site-functions/_fortify" \ No newline at end of file diff --git a/dist/release.sh b/dist/release.sh index 914f398..5102f48 100755 --- a/dist/release.sh +++ b/dist/release.sh @@ -5,7 +5,8 @@ pname="fortify-${VERSION}" out="dist/${pname}" mkdir -p "${out}" -cp "README.md" "dist/fsurc.default" "dist/install.sh" "${out}" +cp -v "README.md" "dist/fsurc.default" "dist/install.sh" "${out}" +cp -rv "comp" "${out}" go build -v -o "${out}/bin/" -ldflags "-s -w -X git.gensokyo.uk/security/fortify/internal.Version=${VERSION}