Changeset 24713 for gs3-extensions/solr


Ignore:
Timestamp:
2011-10-05T13:54:01+13:00 (10 years ago)
Author:
davidb
Message:

Corrected 'gsdlsrc' to 'gsdlsrcdir' variable, plus made the decision to copy web/* based on whether 'web' exists or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/ADD-SERVICE.sh

    r24648 r24713  
    1515  echo "Patching GS2LuceneSearch to inherit from SharedSoleneGS2FieldSearch.java"
    1616  mkdir backup
    17   /bin/mv ../../$gsdlsrc/service/GS2LuceneSearch.java backup/.
    18   /bin/cp $gsdlsrc/service/GS2LuceneSearch.java ../../$gsdlsrc/service/.
    19   /bin/cp $gsdlsrc/service/SharedSoleneGS2FieldSearch.java ../../$gsdlsrc/service/.
     17  /bin/mv ../../$gsdlsrcdir/service/GS2LuceneSearch.java backup/.
     18  /bin/cp $gsdlsrcdir/service/GS2LuceneSearch.java ../../$gsdlsrcdir/service/.
     19  /bin/cp $gsdlsrcdir/service/SharedSoleneGS2FieldSearch.java ../../$gsdlsrcdir/service/.
    2020fi
    2121
     
    3737fi
    3838
    39 # copy the content of the web folder (avoiding the top-level .svn directory)
    40 /bin/cp -r web/* ../../$webextdir/.
     39if [ -d web ] ;
     40  # copy the content of the web folder (avoiding the top-level .svn directory)
     41  /bin/cp -r web/* ../../$webextdir/.
     42fi
    4143
Note: See TracChangeset for help on using the changeset viewer.