aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/checkbashisms/checkbashisms.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/development/checkbashisms/checkbashisms.SlackBuild b/development/checkbashisms/checkbashisms.SlackBuild
index 0850d29cfacd6..70911367fd132 100644
--- a/development/checkbashisms/checkbashisms.SlackBuild
+++ b/development/checkbashisms/checkbashisms.SlackBuild
@@ -41,9 +41,13 @@ mkdir -p $TMP $PKG $OUTPUT
cd $PKG
mkdir -p $PKG/usr/bin
-install -m 0755 "$CWD/$PRGNAM.pl?id=$REV" $PKG/usr/bin/$PRGNAM
+install -m 0755 "$CWD/$PRGNAM.pl?id=$REV" $PKG/usr/bin/$PRGNAM || \
+ install -m 0755 "$CWD/$PRGNAM.pl" $PKG/usr/bin/$PRGNAM
+
mkdir -p $PKG/usr/man/man1
-cat "$CWD/$PRGNAM.1?id=$REV" | gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz
+cat "$CWD/$PRGNAM.1?id=$REV" > $PKG/usr/man/man1/$PRGNAM.1 || \
+ cat "$CWD/$PRGNAM.1" > $PKG/usr/man/man1/$PRGNAM.1
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild