Try to fix stupid build error on Travis

This commit is contained in:
Elizabeth Myers 2016-03-07 18:00:13 -06:00
parent d0a28c6a94
commit 4ea068e826
2 changed files with 9 additions and 2 deletions

View file

@ -29,7 +29,8 @@ include/serno.h:
echo '#define SERNO "'$$revh'"' >include/serno.h ; \ echo '#define SERNO "'$$revh'"' >include/serno.h ; \
echo "#define DATECODE $${datecode}UL" >>include/serno.h; \ echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
fi \ fi \
else \ fi
@if [ ! -f include/serno.h ]; then \
echo '#define SERNO "unknown"' >include/serno.h; \ echo '#define SERNO "unknown"' >include/serno.h; \
echo '#define DATECODE 0UL' >>include/serno.h; \ echo '#define DATECODE 0UL' >>include/serno.h; \
fi fi

View file

@ -9,4 +9,10 @@ BUILT_SOURCES = include/serno.h
# NOTE: you'll want to change the below if you are unbundling # NOTE: you'll want to change the below if you are unbundling
include/serno.h: include/serno.h:
@cp ../include/serno.h include/ @if [ -f ../include/serno.h ]; then \
cp ../include/serno.h include/; \
else \
echo '#define SERNO "unknown"' >include/serno.h; \
echo '#define DATECODE 0UL' >>include/serno.h; \
fi