File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 44
55# export COVERAGE=1
66VERSION =$(shell grep 'CUTEST_VERSION' src/cutest.h | cut -d'"' -f2)
7+ DATE =$(shell /bin/date +"% Y-% m-% d")
78
89all :
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
6166examples/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
7478clean :
7579 @rm -rf tmp cutest-* * ~ && \
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ naive, simple and realistic examples of various CUTest usages.
2929Version 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments