forked from GitHub/gf-core
bug fix in import reading (had forgotten gfr)
This commit is contained in:
@@ -220,8 +220,12 @@ getImports ps = get [] where
|
||||
tryRead name = do
|
||||
file <- do
|
||||
let file_gf = gfFile name
|
||||
b <- doesFileExistPath ps file_gf -- try gf file first
|
||||
if b then return file_gf else return (gfcFile name) -- gfc next
|
||||
b <- doesFileExistPath ps file_gf -- try gf file first
|
||||
if b then return file_gf else do
|
||||
let file_gfr = gfrFile name
|
||||
bb <- doesFileExistPath ps file_gfr -- gfr file next
|
||||
if bb then return file_gfr else do
|
||||
return (gfcFile name) -- gfc next
|
||||
|
||||
readFileIfPath ps $ file
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ endif
|
||||
|
||||
.PHONY: all unix jar tags gfdoc windows install install-gf \
|
||||
lib temp install-gfdoc install-editor \
|
||||
today help clean windows-msi
|
||||
today help clean windows-msi dist
|
||||
|
||||
all: unix gfdoc $(BUILD_JAR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user