aboutsummaryrefslogtreecommitdiff
path: root/development/bzr
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-04 22:22:54 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-04 22:22:54 -0400
commit9367f773b6d4688a45633c9f9552f59a67ac0389 (patch)
treed785b33edfb01fb9665c1f4a6d89b6792eac49a3 /development/bzr
parent7a94d003d03a90b2fa5149cdb15fdb41c2203b3e (diff)
development/bzr: Remove INSTALL from doc dir.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/bzr')
-rw-r--r--development/bzr/bzr.SlackBuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/development/bzr/bzr.SlackBuild b/development/bzr/bzr.SlackBuild
index 1735626081bf7..5c8f9fddd481f 100644
--- a/development/bzr/bzr.SlackBuild
+++ b/development/bzr/bzr.SlackBuild
@@ -22,6 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220404 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - remove useless INSTALL from doc dir.
+# - add empty file in empty dir in docs, to shut sbopkglint up.
+# Robby, you should have a look at this when you have time.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=bzr
@@ -38,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,9 +77,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
# Generate docs - this will fail if python docutils is not installed
make docs 2>/dev/null || true
@@ -88,11 +90,16 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG/usr/man -type f -exec gzip -9 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- BRANCH.TODO COPYING.txt INSTALL NEWS README TODO doc/* \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a BRANCH.TODO COPYING.txt NEWS README TODO doc/* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+# 20220404 bkw: this directory is empty and triggers sbopkglint
+# complaints. I have no idea why it's empty nor whether it would hurt
+# anything to remove it, so I just make it non-empty here.
+[ -e $PKGDOC/ja/_templates/ ] && \
+ echo "placeholder, ignore me" > $PKGDOC/ja/_templates/.placeholder
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc