]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Announce system-release to buildspy.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 8 Mar 2009 22:14:35 +0000 (23:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 8 Mar 2009 22:14:35 +0000 (23:14 +0100)
tools/make-buildspy

index 0a78507e3c18bb8b6aaab369a2b325d5da50e155..17b4e986c5c495f7f7f21a8304482cff4c28986d 100755 (executable)
@@ -46,6 +46,12 @@ build_spy_send_profile() {
                awk -F: '{ print $2 }' | $BASEDIR/tools/base64)
        build_spy machine  $(uname -m)
        build_spy toolchain "${NAME}-${TOOLCHAINVERSION}"
+       for i in system fedora redhat $SNAME debian ubuntu lsb; do
+               if [ -e "/etc/${i}-release" ]; then
+                       build_spy system $(cat /etc/${i}-release)
+                       break
+               fi
+       done
 }
 
 if [ "$(basename $0)" == "make-buildspy" ]; then