diff options
Diffstat (limited to 'perl/perl-IO-CaptureOutput')
-rw-r--r-- | perl/perl-IO-CaptureOutput/README | 6 | ||||
-rw-r--r-- | perl/perl-IO-CaptureOutput/perl-IO-CaptureOutput.SlackBuild | 18 |
2 files changed, 17 insertions, 7 deletions
diff --git a/perl/perl-IO-CaptureOutput/README b/perl/perl-IO-CaptureOutput/README index 24b5256495..c88b067d23 100644 --- a/perl/perl-IO-CaptureOutput/README +++ b/perl/perl-IO-CaptureOutput/README @@ -1,3 +1,3 @@ -This module provides routines for capturing STDOUT and STDERR from perl -subroutines, forked system calls (e.g. system(), fork()) and from XS or C -modules. +This module provides routines for capturing STDOUT and STDERR from +perl subroutines, forked system calls (e.g. system(), fork()) and from +XS or C modules. diff --git a/perl/perl-IO-CaptureOutput/perl-IO-CaptureOutput.SlackBuild b/perl/perl-IO-CaptureOutput/perl-IO-CaptureOutput.SlackBuild index b546bd4b61..fefca4fd5e 100644 --- a/perl/perl-IO-CaptureOutput/perl-IO-CaptureOutput.SlackBuild +++ b/perl/perl-IO-CaptureOutput/perl-IO-CaptureOutput.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-IO-CaptureOutput @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -SRCNAM=IO-CaptureOutput +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-IO-CaptureOutput +SRCNAM=IO-CaptureOutput VERSION=${VERSION:-1.1104} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -94,4 +104,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |