X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fautomake.mk;h=34abe5b9db3df12ab2e5d81ed6aa23fc680313d2;hb=92ada13254cbbc24ded4c9970d73dac1fe2f10d9;hp=d4d59613ecf31e19082ba6c824b8c02fb5fda7a1;hpb=c434706a374bd44d1274e7bdbee40067a6620b61;p=openvswitch diff --git a/rhel/automake.mk b/rhel/automake.mk index d4d59613..34abe5b9 100644 --- a/rhel/automake.mk +++ b/rhel/automake.mk @@ -20,11 +20,13 @@ EXTRA_DIST += \ $(srcdir)/rhel/openvswitch-kmod-rhel5.spec: rhel/openvswitch-kmod-rhel5.spec.in $(top_builddir)/config.status - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch-kmod-rhel5.spec.in > $@ $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status - - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch-kmod-rhel6.spec.in > $@ $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch.spec.in > $@