summaryrefslogtreecommitdiffstats
path: root/system/ts
diff options
context:
space:
mode:
Diffstat (limited to 'system/ts')
-rw-r--r--system/ts/README55
-rw-r--r--system/ts/ts.SlackBuild22
2 files changed, 43 insertions, 34 deletions
diff --git a/system/ts/README b/system/ts/README
index 6028123804..7aa9218d96 100644
--- a/system/ts/README
+++ b/system/ts/README
@@ -1,37 +1,36 @@
-Task spooler is a Unix batch system where the tasks spooled run one after
-the other. The amount of jobs to run at once can be set at any time. Each
-user in each system has his own job queue. The tasks are run in the correct
-context (that of enqueue) from any shell/process, and its output/results
-can be easily watched. It is very useful when you know that your commands
-depend on a lot of RAM, a lot of disk use, give a lot of output, or for
-whatever reason it's better not to run them all at the same time, while you
-want to keep your resources busy for maximum benfit. Its interface allows
-using it easily in scripts.
+Task spooler is a Unix batch system where the tasks spooled run one
+after the other. The amount of jobs to run at once can be set at any
+time. Each user in each system has his own job queue. The tasks are
+run in the correct context (that of enqueue) from any shell/process,
+and its output/results can be easily watched. It is very useful when
+you know that your commands depend on a lot of RAM, a lot of disk use,
+give a lot of output, or for whatever reason it's better not to run
+them all at the same time, while you want to keep your resources busy
+for maximum benfit. Its interface allows using it easily in scripts.
Features
Task Spooler allows one to:
- * Queue jobs from different terminals.
- * Use it locally in the machine (not as in network queues).
- * Have a good way of seeing the output of the processes (tail,
- errorlevels, ...).
- * Easy use: almost no configuration.
- * Easy to use in scripts.
+* Queue jobs from different terminals.
+* Use it locally in the machine (not as in network queues).
+* Have a good way of seeing the output of the processes (tail,
+ errorlevels, ...).
+* Easy use: almost no configuration.
+* Easy to use in scripts.
At the end, after some time using and developing ts, it can do something
more:
- * It works in GNU systems with the GNU c compiler (Linux, Darwin,
- Cygwin, FreeBSD, etc).
- * No configuration at all for a simple queue.
- * Good integration with renice, kill, etc. (through `ts -p` and process
- groups).
- * Have any amount of queues identified by name, writting a simple
- wrapper script for each (I use ts2, tsio, tsprint, etc).
- * Control how many jobs may run at once in any queue (taking profit of
- multicores).
- * It never removes the result files, so they can be reached even after
- we've lost the ts task list.
- * Transparent if used as a subprogram with -nf.
-
+* It works on GNU systems with the GNU C compiler (Linux, Darwin,
+ Cygwin, FreeBSD, etc).
+* No configuration at all for a simple queue.
+* Good integration with renice, kill, etc. (through `ts -p` and process
+ groups).
+* Have any amount of queues identified by name, writting a simple
+ wrapper script for each (I use ts2, tsio, tsprint, etc).
+* Control how many jobs may run at once in any queue (taking profit of
+ multicores).
+* It never removes the result files, so they can be reached even after
+ we've lost the ts task list.
+* Transparent if used as a subprogram with -nf.
diff --git a/system/ts/ts.SlackBuild b/system/ts/ts.SlackBuild
index c5465c6e78..9f239c1466 100644
--- a/system/ts/ts.SlackBuild
+++ b/system/ts/ts.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ts
@@ -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=ts
VERSION=${VERSION:-0.7.4}
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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -90,4 +100,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