Try to fix stupid build error on Travis
This commit is contained in:
parent
d0a28c6a94
commit
4ea068e826
2 changed files with 9 additions and 2 deletions
|
@ -29,7 +29,8 @@ include/serno.h:
|
|||
echo '#define SERNO "'$$revh'"' >include/serno.h ; \
|
||||
echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
|
||||
fi \
|
||||
else \
|
||||
fi
|
||||
@if [ ! -f include/serno.h ]; then \
|
||||
echo '#define SERNO "unknown"' >include/serno.h; \
|
||||
echo '#define DATECODE 0UL' >>include/serno.h; \
|
||||
fi
|
||||
|
|
|
@ -9,4 +9,10 @@ BUILT_SOURCES = include/serno.h
|
|||
|
||||
# NOTE: you'll want to change the below if you are unbundling
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue