list files that do not go into the distribution
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 30 Aug 2012 14:12:25 +0000 (16:12 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 30 Aug 2012 14:12:25 +0000 (16:12 +0200)
The Makefile of Open vSwitch checks that all files in the
git repository are also distributed and stops with an error
otherwise. But we have some files in git that are not meant
to be distributed (i.e., installed on a sliver). These files can now
be listed in .non-distfiles and the new Makefile will ignore them.

.non-distfiles [new file with mode: 0644]
Makefile.am
planetlab/automake.mk

diff --git a/.non-distfiles b/.non-distfiles
new file mode 100644 (file)
index 0000000..0c43af5
--- /dev/null
@@ -0,0 +1,7 @@
+planetlab/exp-tool
+planetlab/exp-tool/Makefile
+planetlab/exp-tool/showgraph
+planetlab/exp-tool/README
+sliver-openvswitch.spec
+.gitignore
+.non-distfiles
index 5ab0f55..d7eadec 100644 (file)
@@ -129,7 +129,7 @@ dist-hook-git: distfiles
          (cd datapath && $(MAKE) distfiles);                               \
          (cat distfiles; sed 's|^|datapath/|' datapath/distfiles) |        \
            sort -u > all-distfiles;                                        \
-         (cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' |        \
+         (cd $(srcdir) && git ls-files) | grep -vFf $(srcdir)/.non-distfiles |     \
            sort -u > all-gitfiles;                                         \
          comm -1 -3 all-distfiles all-gitfiles > missing-distfiles;        \
          if test -s missing-distfiles; then                                \
index 84b53b4..65a6e16 100644 (file)
@@ -3,15 +3,16 @@ sbin_PROGRAMS += \
        planetlab/vsysc/vsysc
 
 # this Makefile is not intended to go on the sliver image - esp. not in /usr/sbin
-#      planetlab/scripts/Makefile \
+#      planetlab/scripts/Makefile
+# same goes for showgraph
+#      planetlab/scripts/showgraph
 dist_sbin_SCRIPTS += \
        planetlab/scripts/start_ovsdb-server \
        planetlab/scripts/start_vswitchd \
        planetlab/scripts/create_bridge \
        planetlab/scripts/create_port \
        planetlab/scripts/del_bridge \
-       planetlab/scripts/del_port \
-       planetlab/scripts/showgraph
+       planetlab/scripts/del_port
 
 planetlab_pltap_ovs_pltap_ovs_SOURCES = \
        planetlab/pltap-ovs/pltap-ovs.c \