aboutsummaryrefslogtreecommitdiff
path: root/office/remind/remind.SlackBuild
diff options
context:
space:
mode:
authorT3slider <t3slider@gmail.com>2019-07-30 00:41:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-07-30 00:41:48 +0700
commitcbb2245196482a00fa19a586a88abbc0d5111798 (patch)
treec429802bb3af0ae3ad41a614957fe677a46244ea /office/remind/remind.SlackBuild
parent8691010fa4fa3014c207f6ccf04edd3adac108ae (diff)
office/remind: Updated for version 03.01.16.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/remind/remind.SlackBuild')
-rw-r--r--office/remind/remind.SlackBuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/office/remind/remind.SlackBuild b/office/remind/remind.SlackBuild
index cd7751cea3dc7..eac93bf1d1716 100644
--- a/office/remind/remind.SlackBuild
+++ b/office/remind/remind.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Remind
-# Copyright 2016 T3slider <t3slider@gmail.com>
+# Copyright 2019 T3slider <t3slider@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=remind
-VERSION=${VERSION:-03.01.15}
+VERSION=${VERSION:-03.01.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -90,6 +90,10 @@ DATESEP=${DATESEP:--}
# Default time separator. Options are : or .
TIMESEP=${TIMESEP:-:}
+# Default datetime separator. Standard options are @ or / but some may
+# prefer T (any single character can be passed).
+DATETIMESEP=${DATETIMESEP:-@}
+
# Character set to use. Options are ASCII, ISOLATIN1, ISOLATIN2,
# IBMEXTENDED, or IBM852.
CHARSET=${CHARSET:-ISOLATIN1}
@@ -145,6 +149,12 @@ if [ "$TIMESEP" = "." ]; then
sed -i "s|^#define TIMESEP ':'|/* & */|" src/custom.h
sed -i "s|^\(/\* \)\(#define TIMESEP '\.'\)\( \*/\)|\2|" src/custom.h
fi
+if [ "$DATETIMESEP" = "/" ]; then
+ sed -i "s|^#define DATETIMESEP '@'|/* & */|" src/custom.h
+ sed -i "s|^\(/\* \)\(#define DATETIMESEP '/'\)\( \*/\)|\2|" src/custom.h
+elif [ "$DATETIMESEP" != "@" ]; then
+ sed -i "s|^\(#define DATETIMESEP '\)\(@\)\('\)|\1${DATETIMESEP}\3|" src/custom.h
+fi
sed -i "s/^\(#define ISOLATIN1 \).*/\1 0/" src/custom.h
if [ "$CHARSET" != "ASCII" ]; then
sed -i "s/^\(#define $CHARSET \).*/\1 1/" src/custom.h