diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-21 13:52:09 -0400 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 13:28:59 +0000 |
commit | 795dead9ca765652c1b9e25340878db3151345e5 (patch) | |
tree | f1edc0a25d2eb417e08a0e5e2016eace9a520027 /system/mdocml | |
parent | 53fa752fbd4aa3b3ab2cc8274c6fb99d0c41e5f1 (diff) | |
download | slackbuilds-795dead9ca765652c1b9e25340878db3151345e5.tar.gz |
system/mdocml: Install doinst.sh and .conf.new.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/mdocml')
-rw-r--r-- | system/mdocml/doinst.sh | 3 | ||||
-rw-r--r-- | system/mdocml/mdocml.SlackBuild | 4 |
2 files changed, 4 insertions, 3 deletions
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} |