summaryrefslogtreecommitdiffstats
path: root/office/remind/remind.SlackBuild
diff options
context:
space:
mode:
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 cd7751cea3..eac93bf1d1 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