summaryrefslogtreecommitdiffstats
path: root/misc/myclippings
diff options
context:
space:
mode:
Diffstat (limited to 'misc/myclippings')
-rw-r--r--misc/myclippings/README14
-rw-r--r--misc/myclippings/myclippings.SlackBuild16
2 files changed, 20 insertions, 10 deletions
diff --git a/misc/myclippings/README b/misc/myclippings/README
index 6c0df41278..51f70c178b 100644
--- a/misc/myclippings/README
+++ b/misc/myclippings/README
@@ -1,10 +1,10 @@
Perl parser for the Kindle's 3 and 4 "My Clippings.txt" file
-The myclippings script is based on parse_kindle_clippings script and parses
-Kindle's "My Clippings.txt" file for highlights, notes, and bookmarks,
-groups them by book/title, and stores them in the separate files or in a
-single file.
+The myclippings script is based on parse_kindle_clippings script and
+parses Kindle's "My Clippings.txt" file for highlights, notes, and
+bookmarks, groups them by book/title, and stores them in the separate
+files or in a single file.
-Kindle's "My Clippings.txt" file is a mess. The myclippings script helps to
-sort clippings in order to process them in the editor or to store sorted and
-edited clippings back in "My Clippings.txt" file.
+Kindle's "My Clippings.txt" file is a mess. The myclippings script
+helps to sort clippings in order to process them in the editor or to
+store sorted and edited clippings back in "My Clippings.txt" file.
diff --git a/misc/myclippings/myclippings.SlackBuild b/misc/myclippings/myclippings.SlackBuild
index d0dffbdc71..cda6d077e2 100644
--- a/misc/myclippings/myclippings.SlackBuild
+++ b/misc/myclippings/myclippings.SlackBuild
@@ -1,18 +1,28 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for myclippings
# Written by Cezary M. Kruk (c.kruk@bigfoot.com)
# Modified by the SlackBuilds.org project
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=myclippings
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-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}
@@ -45,4 +55,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