diff options
Diffstat (limited to 'support')
| -rwxr-xr-x | support/scripts/graph-depends | 4 | ||||
| -rwxr-xr-x | support/scripts/pkg-stats | 27 | 
2 files changed, 28 insertions, 3 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index da050da8a..409c12301 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -53,7 +53,7 @@ unknownpkgs = []  # list is used as the starting point for full dependency graphs  def get_targets():      sys.stderr.write("Getting targets\n") -    cmd = ["make", "show-targets"] +    cmd = ["make", "-s", "show-targets"]      p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)      output = p.communicate()[0].strip()      if p.returncode != 0: @@ -67,7 +67,7 @@ def get_targets():  # formatted as a Python list.  def get_depends(pkg):      sys.stderr.write("Getting dependencies for %s\n" % pkg) -    cmd = ["make", "%s-show-depends" % pkg] +    cmd = ["make", "-s", "%s-show-depends" % pkg]      p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)      output = p.communicate()[0].strip()      if p.returncode != 0: diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index de73eeb27..9c8ec492c 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -66,6 +66,7 @@ td.lotsofpatches {  <td class=\"centered\">Patch count</td>  <td class=\"centered\">Infrastructure</td>  <td class=\"centered\">License</td> +<td class=\"centered\">License files</td>  </tr>  " @@ -75,6 +76,8 @@ generic_packages=0  manual_packages=0  packages_with_licence=0  packages_without_licence=0 +packages_with_license_files=0 +packages_without_license_files=0  total_patch_count=0  cnt=0 @@ -155,7 +158,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do  	generic_packages=$(($generic_packages+1))      fi -    if grep -qE "^${pkgvariable}_LICENSE =" $i ; then +    if grep -qE "^${pkgvariable}_LICENSE[ ]*=" $i ; then  	packages_with_license=$(($packages_with_license+1))  	license=1      else @@ -163,6 +166,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do  	license=0      fi +    if grep -qE "^${pkgvariable}_LICENSE_FILES[ ]*=" $i ; then +	packages_with_license_files=$(($packages_with_license_files+1)) +	license_files=1 +    else +	packages_without_license_files=$(($packages_without_license_files+1)) +	license_files=0 +    fi +      echo "<tr>"      echo "<td>$cnt</td>" @@ -205,6 +216,12 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do  	echo "<td class=\"centered correct\">Yes</td>"      fi +    if [ ${license_files} -eq 0 ] ; then +	echo "<td class=\"centered wrong\">No</td>" +    else +	echo "<td class=\"centered correct\">Yes</td>" +    fi +      echo "</tr>"  done @@ -236,6 +253,14 @@ echo "<td>Packages not having licence information</td>"  echo "<td>$packages_without_license</td>"  echo "</tr>"  echo "<tr>" +echo "<td>Packages having license files information</td>" +echo "<td>$packages_with_license_files</td>" +echo "</tr>" +echo "<tr>" +echo "<td>Packages not having licence files information</td>" +echo "<td>$packages_without_license_files</td>" +echo "</tr>" +echo "<tr>"  echo "<td>Number of patches in all packages</td>"  echo "<td>$total_patch_count</td>"  echo "</tr>"  | 
