summaryrefslogtreecommitdiffstats
path: root/development/quilt
diff options
context:
space:
mode:
Diffstat (limited to 'development/quilt')
-rw-r--r--development/quilt/README15
-rw-r--r--development/quilt/quilt.SlackBuild22
2 files changed, 25 insertions, 12 deletions
diff --git a/development/quilt/README b/development/quilt/README
index 6e2ed8bc23..e993fcb5e6 100644
--- a/development/quilt/README
+++ b/development/quilt/README
@@ -1,8 +1,11 @@
-These scripts allow to manage a series of patches by keeping track of the
-changes each patch makes. Patches can be applied, un-applied, refreshed, etc.
+These scripts allow to manage a series of patches by keeping track
+of the changes each patch makes. Patches can be applied, un-applied,
+refreshed, etc.
-The key philosophical concept is that your primary output is patches - not ".c"
-files, not ".h" files, but patches, so patches are the first-class object here.
+The key philosophical concept is that your primary output is patches
+- not ".c" files, not ".h" files, but patches, so patches are the
+first-class object here.
-Quilt was originally based on Andrew Morton's patch scripts published on the
-linux kernel mailing list a while ago, but were heavily modified since then.
+Quilt was originally based on Andrew Morton's patch scripts published
+on the linux kernel mailing list a while ago, but were heavily modified
+since then.
diff --git a/development/quilt/quilt.SlackBuild b/development/quilt/quilt.SlackBuild
index 7fd084720b..6a5585d092 100644
--- a/development/quilt/quilt.SlackBuild
+++ b/development/quilt/quilt.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for quilt
@@ -25,26 +25,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=quilt
VERSION=${VERSION:-0.65}
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"
@@ -100,4 +110,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