Changeset 32239

Show
Ignore:
Timestamp:
05.07.2018 22:57:28 (5 months ago)
Author:
ak19
Message:

Committing new helper script move-cmake.sh that will move cmake out of or back into the compilation area. These 2 functions of the script are called by XPDFTOOL.sh after compiling up xpdftools and by CMAKE.sh when searching for an existing CMake within the xpdftools extension to compile up xpdftools.

Location:
gs2-extensions/xpdf-tools/trunk/src
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/CMAKE.sh

    r32238 r32239  
    3131fi 
    3232 
     33# Check that CMake products weren't just moved out of the distribution area, 
     34# before recompiling all of CMake 
     35if [[ ! -e "$GEXTXPDFTOOLS_INSTALLED/bin/cmake" && -e "$GEXT_XPDFTOOLS/devel/$GSDLOS/bin/cmake" ]]; then 
     36    echo "**************************************" 
     37    echo "Moving intermediary CMake products back for development" 
     38    $GEXT_XPDFTOOLS/move-cmake.sh back 
     39    echo "**************************************" 
     40else 
     41    echo "@@@@ $GEXT_XPDFTOOLS/devel/$GSDLOS/bin/cmake does not exist" 
     42    echo "**************************************" 
     43fi 
     44 
    3345# Only compile if necessary - we don't edit these source files: 
    3446# Only compile up OUR cmake, and only if we haven't already got OUR cmake. 
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/XPDFTOOLS.sh

    r32237 r32239  
    123123# If compilation was successful, then we don't need cmake binaries anymore when 
    124124# packaging up xpdf-tools 
     125 
     126if [ -f "$GEXTXPDFTOOLS_INSTALLED/bin/pdftohtml" ]; then 
     127    echo "**************************************" 
     128    echo "Moving intermediary CMake products out of the distribution area" 
     129    $GEXT_XPDFTOOLS/move-cmake.sh away 
     130    echo "**************************************" 
     131fi 
     132 
     133#if [ -f "$installed/bin/pdftohtml" ]; then 
     134#    echo "XpdfTools compilation appears successful (pdftohtml's been generated)" 
     135#    echo "If ready to distribute, run:" 
     136#    echo "    move-cmake.sh away" 
     137#    echo "  to move intermediary products (CMake) out of the distribution area." 
     138#    echo "You can undo this when returning to re-compile by first running:" 
     139#    echo "    move-cmake.sh back" 
     140#fi