Skip to content

Commit 7475ef9

Browse files
committed
Removed a time-restricted warning about changed options to bin/mkpatch
- Legacy-Id: 18629
1 parent 9cd4519 commit 7475ef9

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

bin/mkpatch

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ if [ "$(uname)" = "Linux" ]; then
8080
if [ $? != 0 ] ; then die "Terminating..." >&2 ; exit 1 ; fi
8181
eval set -- "$args"
8282
sed="sed -r"
83+
date="date -d"
8384
else
8485
# Darwin, BSDs
8586
args=$(getopt -o$shortopts $SV $*)
8687
if [ $? != 0 ] ; then die "Terminating..." >&2 ; exit 1 ; fi
8788
set -- $args
8889
sed="sed -E"
90+
date="date -j -f %Y-%m-%d"
8991
fi
9092

9193
while true ; do
@@ -105,16 +107,6 @@ done
105107
# ----------------------------------------------------------------------
106108
# The program itself
107109

108-
today=$(date +%s)
109-
until=$(date -d 2020-10-01 +%s)
110-
if [ $today -lt $until ]; then
111-
echo -e "\n** Please note that the --name switch must now be used if you want to specify"\
112-
"\n a name. If a changeset is given with the -c switch, the name can be"\
113-
"\n autogenerated from the commit comment, though."\
114-
"\n"
115-
fi
116-
117-
118110
if [ "$CHG" ]; then
119111
if [ "$NAME" ]; then
120112
name="${NAME//_/-}-c$CHG"

0 commit comments

Comments
 (0)