diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-26 11:11:33 +1300 |
---|---|---|
committer | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-26 11:19:41 +1300 |
commit | cc7abeadd64917c96012cf2d7c3f4aa0ada9e5bb (patch) | |
tree | 5ef9246bae2f385a0a4abd93152c7a6255ee2d96 /system/libtrash/doinst.sh | |
parent | d29324e8865e051680500db5f251c21ba25b7b92 (diff) |
system/libtrash: Align to template.
Put libs in correct dir, docs in correct dir, config for new files,
don't package 0 byte AUTHORS or useless INSTALL, don't include
.la files.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system/libtrash/doinst.sh')
-rw-r--r-- | system/libtrash/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/libtrash/doinst.sh b/system/libtrash/doinst.sh new file mode 100644 index 0000000000..7c7c3e502e --- /dev/null +++ b/system/libtrash/doinst.sh @@ -0,0 +1,11 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +config etc/libtrash.conf.new |