Changeset 30254 for gs2-extensions

Show
Ignore:
Timestamp:
21.09.2015 10:57:21 (4 years ago)
Author:
jmt12
Message:

Trying to make symlinks smart enough to work under both Greenstone2 and Greenstone3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/tdb/trunk/enable_tdb.sh

    r30253 r30254  
    2525# Black magic to determine the actual name of the extension folder (in case I 
    2626# change from tdb-edit to tdb in the future (writing in hindsight)) 
    27 EXTNAME=${PWD##*/} 
     27EXTDIR="${PWD}" 
     28EXTNAME="${PWD##*/}" 
    2829 
    2930# - Symlink the source file into place 
     
    3334    echo 'already present' 
    3435else 
    35     ln -f -s "${GSDLHOME}/ext/${EXTNAME}/src/lib/tdbclass.h" "${GSDLHOME}/common-src/src/lib/tdbclass.h" 
    36     ln -f -s "${GSDLHOME}/ext/${EXTNAME}/src/lib/tdbclass.cpp" "${GSDLHOME}/common-src/src/lib/tdbclass.cpp" 
     36    ln -f -s "${EXTDIR}/src/lib/tdbclass.h" "${GSDLHOME}/common-src/src/lib/tdbclass.h" 
     37    ln -f -s "${EXTDIR}/src/lib/tdbclass.cpp" "${GSDLHOME}/common-src/src/lib/tdbclass.cpp" 
    3738    echo 'Done!' 
    3839fi