summaryrefslogtreecommitdiffstats
path: root/source/a/tree/tree.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/tree/tree.SlackBuild')
-rwxr-xr-xsource/a/tree/tree.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/a/tree/tree.SlackBuild b/source/a/tree/tree.SlackBuild
index 4ab327c4a..11780dcac 100755
--- a/source/a/tree/tree.SlackBuild
+++ b/source/a/tree/tree.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2007-2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2007-2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=tree
-VERSION=2.0.4
+VERSION=2.1.0
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
@@ -83,9 +83,13 @@ mkdir -p $PKG/usr/bin
cat tree > $PKG/usr/bin/tree
chmod 755 $PKG/usr/bin/tree
-mkdir -p $PKG/usr/man/man1 $PKG/usr/man/fr/man1
+mkdir -p $PKG/usr/man/man1
gzip -9c doc/tree.1 > $PKG/usr/man/man1/tree.1.gz
-gzip -9c doc/tree.fr.1 > $PKG/usr/man/fr/man1/tree.1.gz
+
+if [ -r doc/tree.fr.1 ]; then
+ mkdir -p $PKG/usr/man/fr/man1
+ gzip -9c doc/tree.fr.1 > $PKG/usr/man/fr/man1/tree.1.gz
+fi
mkdir -p $PKG/usr/doc/tree-$VERSION
cp -a \
@@ -102,4 +106,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/tree-$VERSION-$ARCH-$BUILD.txz
-