summaryrefslogtreecommitdiffstats
path: root/system/xjobs
diff options
context:
space:
mode:
Diffstat (limited to 'system/xjobs')
-rw-r--r--system/xjobs/README27
-rw-r--r--system/xjobs/xjobs.SlackBuild26
-rw-r--r--system/xjobs/xjobs.info6
3 files changed, 35 insertions, 24 deletions
diff --git a/system/xjobs/README b/system/xjobs/README
index cc7ceb6124..f6fb6be14a 100644
--- a/system/xjobs/README
+++ b/system/xjobs/README
@@ -1,14 +1,15 @@
-xjobs reads job descriptions line by line and executes them in parallel. It
-limits the number of parallel executing jobs and starts new jobs when jobs
-finish. Therefore, it combines the arguments from every input line with the
-utility and arguments given on the command line. If no utility is given as
-an argument to xjobs, then the first argument on every job line will be used
-as utility. To execute utility xjobs searches the directories given in the
-PATH environment variable and uses the first file found in these directories.
+xjobs reads job descriptions line by line and executes them in
+parallel. It limits the number of parallel executing jobs and starts
+new jobs when jobs finish. Therefore, it combines the arguments from
+every input line with the utility and arguments given on the command
+line. If no utility is given as an argument to xjobs, then the first
+argument on every job line will be used as utility. To execute utility
+xjobs searches the directories given in the PATH environment variable
+and uses the first file found in these directories.
-xjobs is most useful on multiprocessor machines when one needs to execute
-several time consuming commands that could possibly be run in parallel. With
-xjobs this can be achieved easily, and it is possible to limit the load of
-the machine to a useful value. It works similar to xargs, but starts several
-processes simultaneously and gives only one line of arguments to each utility
-call.
+xjobs is most useful on multiprocessor machines when one needs to
+execute several time consuming commands that could possibly be run in
+parallel. With xjobs this can be achieved easily, and it is possible
+to limit the load of the machine to a useful value. It works similar
+to xargs, but starts several processes simultaneously and gives only
+one line of arguments to each utility call.
diff --git a/system/xjobs/xjobs.SlackBuild b/system/xjobs/xjobs.SlackBuild
index 9979c6fe70..6f9a025964 100644
--- a/system/xjobs/xjobs.SlackBuild
+++ b/system/xjobs/xjobs.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for xjobs
-# Copyright 2009-2017 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009-2022 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,26 +22,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=xjobs
-VERSION=${VERSION:-20170630}
+VERSION=${VERSION:-20200726}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
@@ -80,4 +90,4 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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
diff --git a/system/xjobs/xjobs.info b/system/xjobs/xjobs.info
index b2d857ada1..7c6f819691 100644
--- a/system/xjobs/xjobs.info
+++ b/system/xjobs/xjobs.info
@@ -1,8 +1,8 @@
PRGNAM="xjobs"
-VERSION="20170630"
+VERSION="20200726"
HOMEPAGE="http://www.maier-komor.de/xjobs.html"
-DOWNLOAD="http://www.maier-komor.de/xjobs/xjobs-20170630.tgz"
-MD5SUM="aaca070b3fe965e1fc3a893dd64df73a"
+DOWNLOAD="http://www.maier-komor.de/xjobs/xjobs-20200726.tgz"
+MD5SUM="459b5991cf7dce1e6178fc0376bd0d28"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""