diff options
-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} |