summaryrefslogtreecommitdiffstats
path: root/development/PythonToolkit
diff options
context:
space:
mode:
Diffstat (limited to 'development/PythonToolkit')
-rw-r--r--development/PythonToolkit/PythonToolkit.SlackBuild16
-rw-r--r--development/PythonToolkit/README11
2 files changed, 19 insertions, 8 deletions
diff --git a/development/PythonToolkit/PythonToolkit.SlackBuild b/development/PythonToolkit/PythonToolkit.SlackBuild
index 349769c842..c4926a7a9c 100644
--- a/development/PythonToolkit/PythonToolkit.SlackBuild
+++ b/development/PythonToolkit/PythonToolkit.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for PythonToolkit
@@ -22,10 +22,13 @@
# 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=PythonToolkit
VERSION=${VERSION:-18.08}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,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}
@@ -84,4 +94,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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/development/PythonToolkit/README b/development/PythonToolkit/README
index 2c73d01957..398e22e22d 100644
--- a/development/PythonToolkit/README
+++ b/development/PythonToolkit/README
@@ -1,11 +1,12 @@
Python Toolkit (ptk) is an interactive environment for python. Based
around a set of interacting tools it includes an interactive console
-(with support for multiple python interpreters and GUI mainloops), a
-simple python source editor, a python path manager and namespace browser.
+(with support for multiple python interpreters and GUI mainloops),
+a simple python source editor, a python path manager and namespace
+browser.
-NOTE: If you are upgrading from previous versions the configuration may
-have changed between versions, this can give strange effects with window
-layouts etc. To fix any problems it is recommended to run:
+NOTE: If you are upgrading from previous versions the configuration
+may have changed between versions, this can give strange effects with
+window layouts etc. To fix any problems it is recommended to run:
PTK --clear_settings