Fix #532: Remove Changelog.html and Readme.html from Makefile.am
authorColin Clark <colin.clark@cclark.uk>
Sat, 28 Oct 2017 17:17:06 +0000 (18:17 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sat, 28 Oct 2017 17:17:06 +0000 (18:17 +0100)
https://github.com/BestImageViewer/geeqie/issues/532

Wrong exit codes

gen_changelog.sh
gen_readme.sh

index 2b37d19..2a6325c 100755 (executable)
@@ -9,7 +9,7 @@
 # ChangeLog.html is also created
 
 [ ! -e "ChangeLog" ] && exit 1
-[ ! -x "$(command -v git)" ] && exit 1
+[ ! -x "$(command -v git)" ] && exit 0
 
 tail -6614 ChangeLog > ChangeLog.$$.old && \
 LC_ALL=C git log --no-merges --no-notes --encoding=UTF-8 --no-follow 1b58572cf58e9d2d4a0305108395dab5c66d3a09..HEAD > ChangeLog.$$.new && \
index a308453..63ed8ad 100755 (executable)
@@ -3,7 +3,7 @@
 # Script to create README.html file,
 
 [ ! -e "README.md" ] && exit 1
-[ ! -x "$(command -v markdown)" ] && exit 1
+[ ! -x "$(command -v markdown)" ] && exit 0
 
 [ -e README.html ] && mv -f README.html README.html.bak