Add file header to debian scripts

This commit is contained in:
Aoran Zeng 2025-06-15 23:37:13 +08:00
parent 187f90dca5
commit 8a288b90bc
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 24 additions and 2 deletions

View File

@ -1,5 +1,16 @@
#!/bin/sh #!/bin/sh
# --------------------------------------------------------------
# SPDX-License-Identifier: GPL-3.0-or-later
# --------------------------------------------------------------
# DEB File : postinst
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
# Contributors : Nil Null <nil@null.org>
# |
# Created On : <2025-06-14>
# Last Modified : <2025-06-15>
#
# postinst script for chsrc # postinst script for chsrc
# --------------------------------------------------------------
set -e set -e
@ -9,10 +20,10 @@ case "$1" in
if command -v mandb >/dev/null 2>&1; then if command -v mandb >/dev/null 2>&1; then
mandb -q /usr/share/man/man1/chsrc.1 2>/dev/null || true mandb -q /usr/share/man/man1/chsrc.1 2>/dev/null || true
fi fi
# Make sure chsrc is executable # Make sure chsrc is executable
chmod +x /usr/bin/chsrc chmod +x /usr/bin/chsrc
echo "chsrc has been successfully installed!" echo "chsrc has been successfully installed!"
echo "Run 'chsrc help' to get started." echo "Run 'chsrc help' to get started."
;; ;;

View File

@ -1,5 +1,16 @@
#!/bin/sh #!/bin/sh
# --------------------------------------------------------------
# SPDX-License-Identifier: GPL-3.0-or-later
# --------------------------------------------------------------
# DEB File : prerm
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
# Contributors : Nil Null <nil@null.org>
# |
# Created On : <2025-06-14>
# Last Modified : <2025-06-15>
#
# prerm script for chsrc # prerm script for chsrc
# --------------------------------------------------------------
set -e set -e