development/bzr: Remove INSTALL from doc dir.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-04-04 22:22:54 -04:00
parent 7a94d003d0
commit 9367f773b6
1 changed files with 17 additions and 10 deletions

View File

@ -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