Skip to content

Commit 0235a09

Browse files
committed
Prepare for release
1 parent dcab98e commit 0235a09

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#export COVERAGE=1
66
VERSION=$(shell grep 'CUTEST_VERSION' src/cutest.h | cut -d'"' -f2)
7+
DATE=$(shell /bin/date +"%Y-%m-%d")
78

89
all:
910
@echo "======================================" && \
@@ -54,9 +55,13 @@ cutest-$(VERSION).tar.gz:
5455
echo "" && \
5556
$(MAKE) -r --no-print-directory -C cutest-$(VERSION) regression_tests && \
5657
rm -rf cutest-$(VERSION) && \
57-
echo "" && \
58-
echo "ALL OK!!! Go ahead and upload the cutest-$(VERSION).tar.gz then inform the public!" && \
59-
echo ""
58+
grep 'yyyy-mm-dd' README.rst >/dev/null && (bash -c 'echo -e "\e[31mWARNING!!!\e[0m: cutest.h still as yyyy-mm-dd. You need to update it."'; echo "Removing $@"; rm -f $@; true); \
59+
grep ' * * v$(VERSION) $(DATE)' README.rst >/dev/null || (bash -c 'echo -e "\e[31mWARNING!!!\e[0m: cutest.h has wrong date."'; echo "Removing $@"; rm -f $@: true); \
60+
git status | grep 'git add' >/dev/null && (git status; echo "Removing $@" && rm -f $@; true); \
61+
test -f $@ && echo "\nALL OK!!! Go ahead and upload the cutest-$(VERSION).tar.gz then inform the public!\n"
62+
63+
foo:
64+
bash -c 'echo -e "\e[31mWARNING\e[0m: cutest.h still as yyyy-mm-dd. You need to update it."'
6065

6166
examples/cutest_help.rst:
6267
@$(MAKE) -r --no-print-directory -C examples cutest_help.rst
@@ -68,8 +73,7 @@ README.rst: examples/cutest_help.rst
6873
echo "" && \
6974
mv $^ $@ && echo "OK" && \
7075
$(MAKE) -r --no-print-directory -C examples clean && \
71-
echo "" && \
72-
git add $@
76+
echo ""
7377

7478
clean:
7579
@rm -rf tmp cutest-* *~ && \

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ naive, simple and realistic examples of various CUTest usages.
2929
Version history
3030
---------------
3131

32-
* v1.0.2 yyyy-mm-dd Release work flow enhancements
32+
* v1.0.2 2017-08-30 Release work flow fix, skipping and output fix
3333

3434
- Fixed the documentation generator to be run before release
3535
- Made the release build more determenistic and reduced text output

src/cutest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* Version history
5151
* ---------------
5252
*
53-
* * v1.0.2 yyyy-mm-dd Release work flow enhancements
53+
* * v1.0.2 2017-08-30 Release work flow fix, skipping and output fix
5454
*
5555
* - Fixed the documentation generator to be run before release
5656
* - Made the release build more determenistic and reduced text output

0 commit comments

Comments
 (0)