Skip to content

Commit f8d732a

Browse files
committed
Change test condition from -e to -r to make it work with solaris /bin/sh
1 parent c35ffc8 commit f8d732a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,9 @@ endif # enable_nls
835835

836836
.PHONY: $(top_builddir)/src/include/commit_id.h
837837
$(top_builddir)/src/include/commit_id.h:
838-
-[ -e $(top_srcdir)/src/include/commit_id.h ] && cp $(top_srcdir)/src/include/commit_id.h $@
838+
-[ -r $(top_srcdir)/src/include/commit_id.h ] && cp $(top_srcdir)/src/include/commit_id.h $@
839839
-[ -d $(top_srcdir)/.git ] && git log -1 --format='#define COMMIT_ID "%h"' > $@.tmp && mv $@.tmp $@
840-
[ -e $@ ] || echo '#define COMMIT_ID "00000000"' >$@
840+
[ -r $@ ] || echo '#define COMMIT_ID "00000000"' >$@
841841

842842
##########################################################################
843843
#

0 commit comments

Comments
 (0)