Author: wade
Date: 2005-06-18 18:31:37 -0400 (Sat, 18 Jun 2005)
New Revision: 46198
Modified:
trunk/release/linux-installer/buildlinux-installer
trunk/release/linux-installer/wrapper.template
Log:
Fix broken shell scripts for lib/mono/2.0/*.exe files.
Add mono-debugger to the linux installer.
Modified: trunk/release/linux-installer/buildlinux-installer
===================================================================
--- trunk/release/linux-installer/buildlinux-installer 2005-06-18 21:52:00 UTC
(rev 46197)
+++ trunk/release/linux-installer/buildlinux-installer 2005-06-18 22:31:37 UTC
(rev 46198)
@@ -46,6 +46,9 @@
mono-locale-extras mono-data
mono-complete ibm-data-db2 mono-web
)],
+ "$mono_rpms/redhat-9-i386/mono-debugger" => [ qw(
+ mono-debugger
+ )],
"$mono_rpms/redhat-9-i386/gtk-sharp" => [ qw(
gtk-sharp
)],
@@ -242,22 +245,29 @@
}
# Get list .net executables, check if there's a wrapper, and if so, add it to
the list to get substituted
-foreach my $f ((glob "$p/usr/bin/*.exe"), (glob "$p/usr/lib/mono/*/*.exe")) {
+foreach my $file ((glob "$p/usr/bin/*.exe"), (glob "$p/usr/lib/mono/*/*.exe"))
{
+ my $name;
my $path;
my $suffix;
- ($f, $path, $suffix) = &File::Basename::fileparse($f, '\..*$');
+ ($name, $path, $suffix) = &File::Basename::fileparse($file, '\..*$');
my $num_found;
# if the wrapper exists... add it to the list...
- if(-e "$p/usr/bin/$f") {
+ if(-e "$p/usr/bin/$name") {
# Add it to the list if it's not there already
- unless($num_found = grep(/$f/, @executable_wrappers)) {
- print "Adding $f to list of executables!\n";
- push @executable_wrappers, $f;
+ unless($num_found = grep(/$name/, @executable_wrappers)) {
+ print "Adding $name to list of executables!\n";
+ push @executable_wrappers, $name;
}
+
+ # If it's in /lib/mono/2.0, add extra env info
+ if($file =~ /lib\/mono\/2\.0/) {
+ print "Adding lib/mono/2.0 env info: $file\n";
+ substituteParametersInFile("$p/usr/bin/$name", 'exec'
=> 'MONO_PATH=$MONO_PATH:/usr/lib/mono/2.0 exec');
+ }
}
}
@@ -267,7 +277,7 @@
substituteParametersInFile("$p/usr/bin/$f",
'/usr' => '@@BITROCK_MONO_ROOTDIR@@',
'exec mono' => 'exec
@@BITROCK_MONO_ROOTDIR@@/bin/mono',
- 'mono --debug mod.exe' => 'exec
@@BITROCK_MONO_ROOTDIR@@/bin/mono --debug mod.exe');
+ 'mono --debug' => 'exec
@@BITROCK_MONO_ROOTDIR@@/bin/mono --debug');
print "Substituting $f\n";
} else {
print "***Not found $f***\n";
Modified: trunk/release/linux-installer/wrapper.template
===================================================================
--- trunk/release/linux-installer/wrapper.template 2005-06-18 21:52:00 UTC
(rev 46197)
+++ trunk/release/linux-installer/wrapper.template 2005-06-18 22:31:37 UTC
(rev 46198)
@@ -3,7 +3,7 @@
export MONO_PREFIX=@@BITROCK_MONO_ROOTDIR@@
export MONO_CFG_DIR=$MONO_PREFIX/etc
export MONO_GAC_PREFIX=$MONO_PREFIX
-export MONO_PATH=$MONO_PREFIX/lib:$MONO_PREFIX/lib/mono/1.0
+export MONO_PATH=$MONO_PATH:$MONO_PREFIX/lib:$MONO_PREFIX/lib/mono/1.0
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export
LD_LIBRARY_PATH=$MONO_PREFIX/lib:$MONO_PREFIX/lib/monodoc:$LD_LIBRARY_PATH
export PATH=$MONO_PREFIX/bin:$PATH
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches