Commit 6b76a5d6 authored by snuverink_j's avatar snuverink_j
Browse files

only create src/OPALrevision.h if changed

parent 060cafb9
......@@ -4,7 +4,12 @@
#
print () {
echo '#define GIT_VERSION '\"$1\" > src/OPALrevision.h
echo '#define GIT_VERSION '\"$1\" > src/OPALrevision-new.h
if [[ -e src/OPALrevision.h ]] && cmp -s src/OPALrevision.h src/OPALrevision-new.h; then
rm src/OPALrevision-new.h
else
mv src/OPALrevision-new.h src/OPALrevision.h
fi
}
# if git(1) is not in $PATH
......
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