From 795dead9ca765652c1b9e25340878db3151345e5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 21 Mar 2017 13:52:09 -0400 Subject: system/mdocml: Install doinst.sh and .conf.new. Signed-off-by: B. Watson Signed-off-by: David Spencer --- system/mdocml/doinst.sh | 3 --- system/mdocml/mdocml.SlackBuild | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'system/mdocml') diff --git a/system/mdocml/doinst.sh b/system/mdocml/doinst.sh index a4357e61d3..1aa4f55e10 100644 --- a/system/mdocml/doinst.sh +++ b/system/mdocml/doinst.sh @@ -1,14 +1,11 @@ config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy rm $NEW fi - # Otherwise, we leave the .new copy for the admin to consider... } config etc/mandoc.conf.new diff --git a/system/mdocml/mdocml.SlackBuild b/system/mdocml/mdocml.SlackBuild index fca6fb9579..1a24014660 100644 --- a/system/mdocml/mdocml.SlackBuild +++ b/system/mdocml/mdocml.SlackBuild @@ -97,8 +97,12 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a TODO NEWS $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/etc +cat $CWD/mandoc.conf.new > $PKG/etc/mandoc.conf.new + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3-65-gdbad