projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto-dpif: Revalidate tagged packets, too, in facet_lookup_valid().
[openvswitch]
/
rhel
/
automake.mk
diff --git
a/rhel/automake.mk
b/rhel/automake.mk
index d4d59613ecf31e19082ba6c824b8c02fb5fda7a1..d3c089b5d12288f4957f8c58bc82cad48e437e7a 100644
(file)
--- a/
rhel/automake.mk
+++ b/
rhel/automake.mk
@@
-18,13
+18,16
@@
EXTRA_DIST += \
rhel/openvswitch.spec.in \
rhel/usr_share_openvswitch_scripts_sysconfig.template
rhel/openvswitch.spec.in \
rhel/usr_share_openvswitch_scripts_sysconfig.template
+update_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
$(srcdir)/rhel/openvswitch-kmod-rhel5.spec: rhel/openvswitch-kmod-rhel5.spec.in $(top_builddir)/config.status
- sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@
+ $(update_spec)
$(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
$(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
-
- sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@
+ $(update_spec)
$(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
$(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
- sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@
+ $(update_spec)