mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-18 17:56:57 +08:00
Add file header to debian scripts
This commit is contained in:
parent
187f90dca5
commit
8a288b90bc
@ -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."
|
||||||
;;
|
;;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user