Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
aiobofh committed Aug 30, 2017
1 parent dcab98e commit 0235a09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

all:
@echo "======================================" && \
Expand Down Expand Up @@ -54,9 +55,13 @@ cutest-$(VERSION).tar.gz:
echo "" && \
$(MAKE) -r --no-print-directory -C cutest-$(VERSION) regression_tests && \
rm -rf cutest-$(VERSION) && \
echo "" && \
echo "ALL OK!!! Go ahead and upload the cutest-$(VERSION).tar.gz then inform the public!" && \
echo ""
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); \
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); \
git status | grep 'git add' >/dev/null && (git status; echo "Removing $@" && rm -f $@; true); \
test -f $@ && echo "\nALL OK!!! Go ahead and upload the cutest-$(VERSION).tar.gz then inform the public!\n"

foo:
bash -c 'echo -e "\e[31mWARNING\e[0m: cutest.h still as yyyy-mm-dd. You need to update it."'

examples/cutest_help.rst:
@$(MAKE) -r --no-print-directory -C examples cutest_help.rst
Expand All @@ -68,8 +73,7 @@ README.rst: examples/cutest_help.rst
echo "" && \
mv $^ $@ && echo "OK" && \
$(MAKE) -r --no-print-directory -C examples clean && \
echo "" && \
git add $@
echo ""

clean:
@rm -rf tmp cutest-* *~ && \
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ naive, simple and realistic examples of various CUTest usages.
Version history
---------------

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

- Fixed the documentation generator to be run before release
- Made the release build more determenistic and reduced text output
Expand Down
2 changes: 1 addition & 1 deletion src/cutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* Version history
* ---------------
*
* * v1.0.2 yyyy-mm-dd Release work flow enhancements
* * v1.0.2 2017-08-30 Release work flow fix, skipping and output fix
*
* - Fixed the documentation generator to be run before release
* - Made the release build more determenistic and reduced text output
Expand Down

0 comments on commit 0235a09

Please sign in to comment.