Changeset 32913 for main/trunk


Ignore:
Timestamp:
2019-03-19T17:37:30+13:00 (5 years 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 edited

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
Note: See TracChangeset for help on using the changeset viewer.