aboutsummaryrefslogtreecommitdiffstats
path: root/Installer/FilelistTool.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
committerSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
commit880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch)
treebdafb71416f176d2a4b73bf716c9dc3f13685a8b /Installer/FilelistTool.java
Initial revision
Diffstat (limited to 'Installer/FilelistTool.java')
-rw-r--r--Installer/FilelistTool.java66
1 files changed, 66 insertions, 0 deletions
diff --git a/Installer/FilelistTool.java b/Installer/FilelistTool.java
new file mode 100644
index 0000000..d0cd715
--- /dev/null
+++ b/Installer/FilelistTool.java
@@ -0,0 +1,66 @@
+
+public class FilelistTool
+{
+ public static final FilelistOS GetMyInstance(MachineCtrl mctrl)
+ {
+ if(mctrl==null)
+ return null;
+ if(mctrl.isWin32)
+ {
+ if(mctrl.osArch.indexOf("x86")>=0)
+ {
+ return new FilelistWin32I386();
+ }
+ return null;
+ }
+ if(mctrl.isUnix)
+ {
+ if(mctrl.unixFlavor==mctrl.unixFlavor_Linux)
+ {
+ if(mctrl.osArch.indexOf("x86")>=0 ||
+ mctrl.osArch.indexOf("i86")>=0 ||
+ mctrl.osArch.indexOf("i686")>=0 ||
+ mctrl.osArch.indexOf("i586")>=0 ||
+ mctrl.osArch.indexOf("i486")>=0 ||
+ mctrl.osArch.indexOf("i386")>=0
+ )
+ {
+ System.out.println("GLVendor: "+mctrl.glVendor);
+ if(mctrl.glVendor!=null)
+ {
+ if(mctrl.glVendor.indexOf("generic")>=0)
+ return new FilelistLinuxI386GlibcXF86();
+ }
+ return new FilelistLinuxI386GlibcXF86();
+ } else if(mctrl.osArch.indexOf("ppc")>=0)
+ {
+ System.out.println("GLVendor: "+mctrl.glVendor);
+ if(mctrl.glVendor!=null)
+ {
+ if(mctrl.glVendor.indexOf("generic")>=0)
+ return new FilelistLinuxPPCGlibcXF86();
+ }
+ return new FilelistLinuxPPCGlibcXF86();
+ }
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_Solaris)
+ {
+ if(mctrl.osArch.indexOf("sparc")>=0)
+ return new FilelistSUNSolaris26Sparc();
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_Irix)
+ {
+ if(mctrl.osArch.indexOf("mips")>=0)
+ return new FilelistSGIIrix62Mips();
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_HPUX)
+ {
+ if(mctrl.osArch.indexOf("pa_risc")>=0)
+ return new FilelistHPUXPaRisc();
+ }
+ }
+ if(mctrl.isMacOs)
+ {
+ if(mctrl.osArch.indexOf("powerpc")>=0)
+ return new FilelistMacOSPPC();
+ }
+ return null;
+ }
+}