Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3157)

Unified Diff: debian.chrome/tests/check-aliases

Issue 646032: Rename config to match naming convention. (Closed)
Patch Set: Send mail Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debian.chrome/tests/README ('k') | debian.master/rules » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debian.chrome/tests/check-aliases
diff --git a/debian.chrome/tests/check-aliases b/debian.chrome/tests/check-aliases
new file mode 100755
index 0000000000000000000000000000000000000000..b85118ff12c274379da8ea432b4bef72f193dbb1
--- /dev/null
+++ b/debian.chrome/tests/check-aliases
@@ -0,0 +1,24 @@
+#!/usr/bin/perl -w
+
+my %map;
+
+print "Checking for dupe aliases in $ENV{'FLAVOUR'}...\n";
+
+$aliases =
+ "$ENV{'INSTALL_DIR'}/lib/modules/$ENV{'VERSION'}-$ENV{'FLAVOUR'}/modules.alias";
+
+open(ALIASES, "< $aliases") or die "Could not open $aliases";
+
+while (<ALIASES>) {
+ chomp;
+ my ($junk, $alias, $module) = split;
+
+ if (defined($map{$alias})) {
+ printf("%s %20s / %-20s : %s \n", ("$map{$alias}" eq "$module")
+ ? "INT" : " ", $map{$alias}, $module, $alias);
+ } else {
+ $map{$alias} = $module;
+ }
+}
+
+exit(0);
« no previous file with comments | « debian.chrome/tests/README ('k') | debian.master/rules » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698