Changeset 32913 for main

Show
Ignore:
Timestamp:
19.03.2019 17:37:30 (9 months ago)
Author:
ak19
Message:

Kathy wanted makegli.sh to be prevented from running clean and thereby deleting existing class files when there's no src code, as happens with binary. Although the assumption is that developers will run makegli and therefore will ahve checked out src code, we can always accidentally run makegli when testing a binary only to discover we had no src code and have now lost all the installed gli .class files.

Location:
main/trunk/gli
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/makegli.bat

    r32138 r32913  
    44set GLILANG=en 
    55 
     6 
     7:: Don't bother compiling GLI if there's no source code (e.g. if this is a binary only) 
     8if not exist src ( 
     9   echo WARNING: There is no gli source code (src directory) to compile. Terminating makegli. 
     10   goto exit 
     11) 
    612 
    713::  -------- Compile the Greenstone Librarian Interface -------- 
  • main/trunk/gli/makegli.sh

    r32911 r32913  
    11#!/bin/sh 
    22glilang=en 
     3 
     4 
     5# Don't bother compiling GLI if there's no source code (e.g. if this is a binary only) 
     6if [ ! -d "src" ]; then 
     7    echo "WARNING: There is no gli source code (src directory) to compile. Terminating makegli." 
     8    exit 0 
     9fi 
    310 
    411echo