Commit a548b396 by Maarten L. Hekkelman

revision writing

parent d5d96c58
......@@ -159,6 +159,7 @@ else
src/revision.hpp:
@ echo 'const char kRevision[] = R"(' > $@
@ echo libcifpp-version: $(VERSION) >> $@
@ echo Date: $$(date --iso-8601) >> $@
@ echo ')";' >> $@
endif
......
......@@ -74,7 +74,16 @@ AC_SUBST(LIBCIF_SEMANTIC_VERSION)
AC_ARG_VAR([DEBUG], [Build a debug version of the library])
AC_ARG_VAR([UPDATE_REVISION], [Update the revision.hpp file])
dnl revision numbering is something used internally at the NKI
AC_ARG_ENABLE(
revision,
[AS_HELP_STRING([--disable-revision], [Create a build number as revision])])
AS_IF([test "x$enable_resources" != "xyes" ], [
UPDATE_REVISION=1
])
AC_SUBST([UPDATE_REVISION], [$UPDATE_REVISION])
AC_ARG_VAR([CCP4], [The location where CCP4 is installed])
......
......@@ -2,6 +2,11 @@
set -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# create cache directory if it doesn't exist
if ! [ -d /var/cache/libcifpp ]; then
install -d -m755 /var/cache/libcifpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment