slackbuilds_ponce/system/libtrash/doinst.sh
Andrew Clemons cc7abeadd6
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>
2022-03-26 11:19:41 +13:00

11 lines
224 B
Bash

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