summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-06-24 10:31:52 -0400
committerRob Crittenden <rcritten@redhat.com>2010-06-24 10:33:53 -0400
commit09fb073e8210f1c8239c0b253672e613822fc553 (patch)
tree6f3f333a2273a45792040523c9726de89ce3342d /Makefile
parent93e54366f9afedcdef78c8dfb6373d4813fba8cb (diff)
downloadfreeipa-09fb073e8210f1c8239c0b253672e613822fc553.tar.gz
freeipa-09fb073e8210f1c8239c0b253672e613822fc553.tar.xz
freeipa-09fb073e8210f1c8239c0b253672e613822fc553.zip
Replication version checking.
Whenever we upgrade IPA such that any data incompatibilities might occur then we need to bump the DATA_VERSION value so that data will not replicate to other servers. The idea is that you can do an in-place upgrade of each IPA server and the different versions own't pollute each other with bad data.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cfdcfcfd6..4952033dc 100644
--- a/Makefile
+++ b/Makefile
@@ -101,6 +101,10 @@ version-update: release-update
sed -e s/__VERSION__/$(IPA_VERSION)/ ipapython/version.py.in \
> ipapython/version.py
perl -pi -e "s:__NUM_VERSION__:$(IPA_VERSION_MAJOR)$(IPA_VERSION_MINOR)$(IPA_VERSION_RELEASE):" ipapython/version.py
+ sed -e s/__VERSION__/$(IPA_VERSION)/ daemons/ipa-version.h.in \
+ > daemons/ipa-version.h
+ perl -pi -e "s:__NUM_VERSION__:$(IPA_VERSION_MAJOR)$(IPA_VERSION_MINOR)$(IPA_VERSION_RELEASE):" daemons/ipa-version.h
+ perl -pi -e "s:__DATA_VERSION__:$(IPA_DATA_VERSION):" daemons/ipa-version.h
sed -e s/__VERSION__/$(IPA_VERSION)/ -e s/__RELEASE__/$(IPA_RPM_RELEASE)/ \
ipa-client/ipa-client.spec.in > ipa-client/ipa-client.spec