build script: warn if building from data file which was not commited into Mercurial
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 11 Aug 2013 13:16:50 +0200
changeset 291c0eb6a70c2a
parent 28 cb8c5cccaa8d
child 30 c18b33cc8329
build script: warn if building from data file which was not commited into Mercurial
build.sh
     1.1 --- a/build.sh	Fri Aug 09 23:25:16 2013 +0200
     1.2 +++ b/build.sh	Sun Aug 11 13:16:50 2013 +0200
     1.3 @@ -37,6 +37,8 @@
     1.4  
     1.5  pushd `dirname $0`/$GENERATOR_DIR
     1.6  
     1.7 +hg status ../../data/dictionary.xml | grep -q "^M" && echo -e "\033[31mWARNING: building from data file which was not commited into Mercurial!\033[0m";
     1.8 +
     1.9  # build the generator if needed
    1.10  if [ ! -f $JAR ]; then
    1.11      ant;