Ignore:
Timestamp:
2008-02-29T10:56:46+13:00 (16 years ago)
Author:
kjdon
Message:

apparently perl can't detect little vs big endian on a mac, so our perl code will always name the database file .bdb on a mac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/util/GSFile.java

    r13270 r15026  
    291291    /** the gdbm database file -
    292292     * note, need to change extension depending on OS */
     293    // The perl code can't detect big vs little endian on a Mac, so the Perl
     294    // code will always name the gdbm db file .bdb on a Mac whether its little
     295    // endian or not. A Mac little endian file is NOT the same as a Linux
     296    // little endian file
    293297    static public String GDBMDatabaseFile(String site_home,
    294298                      String collection_name,
     
    296300
    297301    String db_ext = ".ldb";
    298     if (Misc.isBigEndian()) {
     302    if (Misc.isMac() || Misc.isBigEndian()) {
    299303        db_ext = ".bdb";
    300304    }
Note: See TracChangeset for help on using the changeset viewer.