X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fautomake.mk;h=4c1d7821a41a1bb15770298c52e366177648c900;hb=a122b0fa65a62aa1db11c10efb1801ca9bba9cb4;hp=34abe5b9db3df12ab2e5d81ed6aa23fc680313d2;hpb=cbaa4ffe9b72904a7dad8ba23fa13cf2783b26c9;p=openvswitch diff --git a/rhel/automake.mk b/rhel/automake.mk index 34abe5b9..4c1d7821 100644 --- a/rhel/automake.mk +++ b/rhel/automake.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright @@ -6,9 +6,12 @@ # without warranty of any kind. EXTRA_DIST += \ + rhel/README.RHEL \ rhel/automake.mk \ rhel/etc_init.d_openvswitch \ rhel/etc_logrotate.d_openvswitch \ + rhel/etc_sysconfig_network-scripts_ifdown-ovs \ + rhel/etc_sysconfig_network-scripts_ifup-ovs \ rhel/kmodtool-openvswitch-el5.sh \ rhel/openvswitch-kmod-rhel5.spec \ rhel/openvswitch-kmod-rhel5.spec.in \ @@ -18,15 +21,16 @@ EXTRA_DIST += \ rhel/openvswitch.spec.in \ rhel/usr_share_openvswitch_scripts_sysconfig.template +update_rhel_spec = \ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \ + if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi $(srcdir)/rhel/openvswitch-kmod-rhel5.spec: rhel/openvswitch-kmod-rhel5.spec.in $(top_builddir)/config.status - ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ - < $(srcdir)/rhel/openvswitch-kmod-rhel5.spec.in > $@ + $(update_rhel_spec) $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status - ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ - < $(srcdir)/rhel/openvswitch-kmod-rhel6.spec.in > $@ + $(update_rhel_spec) $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status - ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ - < $(srcdir)/rhel/openvswitch.spec.in > $@ + $(update_rhel_spec)