3 #################################################################
6 # get requirements from the same dir as the script
8 # we'll be pulling in some stuff from the script directory
11 push @INC, $FindBin::Bin
;
14 require GenerateManifest
;
15 import GenerateManifest
;
22 if (/((MS)?win32)|cygwin/i) {
30 $moz = "$ENV{'MOZ_SRC'}/mozilla";
31 if ($ENV{'MOZ_DEBUG'}) {
32 $chrome = "$moz/dist/WIN32_D.OBJ/Embed/tmpchrome";
36 $chrome = "$moz/dist/WIN32_O.OBJ/Embed/tmpchrome";
41 $chrome = "$moz/dist/Embed/tmpchrome";
46 $platform = "en-unix";
48 GetOptions
('verbose!' => \
$verbose,
50 'manifest=s' => \
$manifest,
51 'chrome=s' => \
$chrome,
52 'locale=s' => \
$locale,
53 'help' => \
$showhelp);
56 # Fix those pesky backslashes
66 print STDERR
"Embedding manifest generator.\n",
68 " -help Show this help.\n",
69 " -manifest <file> Specify the input manifest.\n",
70 " -mozpath <path> Specify the path to Mozilla.\n",
71 " -chrome <path> Specify the path to the chrome.\n",
72 " -locale <value> Specify the locale to use. (e.g. en-US)\n",
73 " -verbose Print extra information\n";
77 if ($manifest eq "") {
78 die("Error: No input manifest file was specified.\n");
82 print STDERR
"Mozilla path = \"$moz\"\n",
83 "Chrome path = \"$chrome\"\n",
84 "Manifest file = \"$manifest\"\n";
87 GenerateManifest
($moz, $manifest, $chrome, $locale, $platform, *STDOUT
, "/", $verbose);