Skip to content

Commit dd4bd01

Browse files
committed
Update release script
1 parent 46b828e commit dd4bd01

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

Changes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.1.0 - 2015-07-21
2+
13
* Previously, when there was an error in `MMDB_open()`, `errno` would
24
generally be overwritten during cleanup, preventing a useful value from
35
being returned to the caller. This was changed so that the `errno` value
@@ -12,11 +14,11 @@
1214
* On Windows, we were not checking the return value of `CreateFileMappingA()`
1315
properly for errors. Fixed by Bly Hotetler. GitHub #78.
1416
* Several warnings from Clang's scan-build were fixed. GitHub #86.
15-
* All headers are now installed in `$(includedir)`.
17+
* All headers are now installed in `$(includedir)`. GitHub #89.
1618
* We no longer install `maxminddb-compat-util.h`. This header was intended for
1719
internal use only.
1820

19-
## 1.0.4 - 2014-01-02
21+
## 1.0.4 - 2015-01-02
2022

2123
* If you used a non-integer string as an array index when doing a lookup with
2224
`MMDB_get_value()`, `MMDB_vget_value()`, or `MMDB_aget_value()`, the first

Makefile.am

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ man/man1/*.1:
3131
man/man3/*.3:
3232
if [ ! -f man/man3/libmaxminddb.3 ]; then mkdir -p man/man3 && touch man/man3/libmaxminddb.3; fi
3333

34-
release:
35-
dev-bin/make-release.sh $(PACKAGE_VERSION)
36-
3734
.PHONY: man/man1/*.1 man/man3/*.3 release

dev-bin/make-release.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/sh
22
set -e
33

4-
TAG=$1
5-
6-
if [ -z $TAG ]; then
7-
echo "Please specify a tag"
8-
exit 1
9-
fi
4+
TAG=$(perl -MFile::Slurp::Tiny=read_file -MDateTime <<EOF
5+
use v5.16;
6+
my \$today = DateTime->now->ymd;
7+
my \$log = read_file(q{Changes.md});
8+
\$log =~ /^\#\# (\d+\.\d+\.\d+(?:-\w+)?) - (\d{4}-\d{2}-\d{2})\n/;
9+
die "Release time is not today! Release: \$2 Today: \$today"
10+
unless \$today eq \$2;
11+
say \$1;
12+
EOF
13+
)
1014

1115
if [ -n "$(git status --porcelain)" ]; then
1216
echo ". is not clean." >&2
@@ -81,5 +85,5 @@ fi
8185

8286
cd ..
8387

84-
git tag -a -m "Release for $TAG" $TAG
88+
git tag -a -m "Release for $TAG" "$TAG"
8589
git push --follow-tags

0 commit comments

Comments
 (0)