#!/bin/bash
# redirect this into modules.list to get it refreshed
+#
-for tags in *tags*4.2.mk ; do make stage1=true PLDISTROTAGS=$tags module-tools ; done | sort -u | grep -v '^build$'
+# run on several distros as we filter out duplicates anyways
+# centos5 has more of our modules, but skips sfa
+fcdistros="f14 f16"
+
+( for fcdistro in $fcdistros; do
+ make stage1=true PLDISTRO=planetlab PLDISTROTAGS=planetlab-k32-tags.mk DISTRONAME=${fcdistro} module-tools ;
+ make stage1=true PLDISTRO=onelab PLDISTROTAGS=onelab-tags.mk DISTRONAME=${fcdistro} module-tools ;
+ make stage1=true PLDISTRO=mlab PLDISTROTAGS=mlab-tags.mk DISTRONAME=${fcdistro} module-tools ;
+ make stage1=true PLDISTRO=lxc PLDISTROTAGS=lxc-tags.mk DISTRONAME=${fcdistro} module-tools ;
+ make stage1=true PLDISTRO=lxc PLDISTROTAGS=lxc-openvswitch-tags.mk DISTRONAME=${fcdistro} module-tools ;
+ done 2>/dev/null ;
+ echo tests
+) | sort -uf | grep -v '^build$'