diff options
Diffstat (limited to 'system/nano-syntax-highlighting')
-rw-r--r-- | system/nano-syntax-highlighting/README | 6 | ||||
-rw-r--r-- | system/nano-syntax-highlighting/nano-syntax-highlighting.SlackBuild | 16 |
2 files changed, 17 insertions, 5 deletions
diff --git a/system/nano-syntax-highlighting/README b/system/nano-syntax-highlighting/README index 959f98ad20..cd28b1439e 100644 --- a/system/nano-syntax-highlighting/README +++ b/system/nano-syntax-highlighting/README @@ -13,7 +13,9 @@ Or to be less verbose, append content of the folder in one line with wildcard: For current user. -$ echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' >> ~/.nanorc +$ echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' \ + >> ~/.nanorc For all users. -# echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' >> /etc/nanorc +# echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' \ + >> /etc/nanorc diff --git a/system/nano-syntax-highlighting/nano-syntax-highlighting.SlackBuild b/system/nano-syntax-highlighting/nano-syntax-highlighting.SlackBuild index 94eafed157..e506d93a12 100644 --- a/system/nano-syntax-highlighting/nano-syntax-highlighting.SlackBuild +++ b/system/nano-syntax-highlighting/nano-syntax-highlighting.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for the nano-syntax-highlighting. # @@ -22,14 +22,24 @@ # 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=nano-syntax-highlighting VERSION=${VERSION:-20180827} 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} @@ -66,4 +76,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 |