Sha256: 04407e6264ee708948d70707c33e1e8eb9fecd27623fcac943ef6e5cc12a4db2

Contents?: true

Size: 1.98 KB

Versions: 23

Compression:

Stored size: 1.98 KB

Contents

#! /usr/bin/env ruby

require 'autoproj'
require 'autoproj/cmdline'

Autoproj.silent do
    Autoproj::CmdLine.initialize_root_directory
    Autoproj::CmdLine.initialize_and_load(ARGV)
end
manifest = Autoproj.manifest

# Load the manifest for packages that are already present on the
# file system
manifest.packages.each_value do |pkg|
    if File.directory?(pkg.autobuild.srcdir)
        manifest.load_package_manifest(pkg.autobuild.name)
    end
end

all_packages = Hash.new
package_sets = manifest.each_package_set.to_a
package_sets.each do |pkg_set|
    pkg_set.each_package do |pkg|
        all_packages[pkg.name] = [pkg, pkg_set.name]
    end
end

metapackages = manifest.metapackages.values

if package_sets.empty?
    Autoproj.message("autoproj: no package sets defined in autoproj/manifest", :bold, :red)
    exit(0)
end

Autoproj.message
Autoproj.message("autoproj: package sets", :bold)
package_sets.sort_by(&:name).each do |pkg_set|
    next if pkg_set.empty?
    if !pkg_set.imported_from.empty?
        imported_from = pkg_set.imported_from.map(&:name).sort
        Autoproj.message "  #{pkg_set.name} (imported by #{imported_from.join(", ")})"
    else
        Autoproj.message "  #{pkg_set.name} (listed in manifest)"
    end
end

Autoproj.message
Autoproj.message("autoproj: metapackages", :bold)
metapackages.sort_by(&:name).each do |metap|
    Autoproj.message "  #{metap.name}"
end

packages_not_present = []

Autoproj.message
Autoproj.message("autoproj: packages", :bold)
all_packages.to_a.sort_by(&:first).map(&:last).each do |pkg, pkg_set|
    if File.exists?(File.join(pkg.srcdir, "manifest.xml"))
        manifest.load_package_manifest(pkg.name)
        manifest.resolve_optional_dependencies
    end

    pkg_manifest = pkg.description
    if File.directory?(pkg.srcdir)
        Autoproj.message "  #{pkg.name}#{": #{pkg_manifest.short_documentation}" if pkg_manifest && pkg_manifest.short_documentation}"
    else
        Autoproj.message "  #{pkg.name}: not yet checked out", :magenta
    end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
autoproj-1.13.7 bin/autoproj-list
autoproj-1.13.6 bin/autoproj-list
autoproj-1.13.5 bin/autoproj-list
autoproj-1.13.5.rc1 bin/autoproj-list
autoproj-1.13.4 bin/autoproj-list
autoproj-1.13.3 bin/autoproj-list
autoproj-1.13.3.b2 bin/autoproj-list
autoproj-1.13.3.b1 bin/autoproj-list
autoproj-1.13.2.b4 bin/autoproj-list
autoproj-1.13.2.b3 bin/autoproj-list
autoproj-1.13.2.b2 bin/autoproj-list
autoproj-1.13.2.b1 bin/autoproj-list
autoproj-1.13.2 bin/autoproj-list
autoproj-1.13.1 bin/autoproj-list
autoproj-1.13.0 bin/autoproj-list
autoproj-1.13.0.b8 bin/autoproj-list
autoproj-1.13.0.b7 bin/autoproj-list
autoproj-1.13.0.b6 bin/autoproj-list
autoproj-1.13.0.b5 bin/autoproj-list
autoproj-1.13.0.b4 bin/autoproj-list