John J. Camilleri
5172586aa8
Check GHC version instead of directory version
...
Explanation by Thomas Hallgren:
These MIN_VERSION macros are traditionally provided by Cabal, in dist/build/autogen/cabal_macros.h. It is only with ghc>=8.0 that ghc itself provides them, so with ghc<8, runghc Make.hs fails, as can be seen in the included message.
Incidentally, ghc-8.0.1 also comes with directory-1.3, so I suggest using
#if __GLASGOW_HASKELL__>=800
instead. Then Make.hs will work with older versions of ghc, and set the modification times if you are using ghc>=8.0.
2018-10-31 11:10:05 +01:00
John J. Camilleri
62ea7c82a9
If directory < 1.2.3.0 then don't set modification times on copy
2018-10-31 09:13:52 +01:00
John J. Camilleri
e30fa8933f
Own definition of die for base < 4.8.0.0
2018-10-31 08:43:48 +01:00
John J. Camilleri
999cdb8e36
Copy files with only modification time rather than all metadata
2018-10-26 09:10:32 +02:00
bruno cuconato
77a7b7e51c
use copyFileWithMetadata instead of copyFile
...
to preserve timestamps #43 ([but also preserves other stuff](http://hackage.haskell.org/package/directory-1.3.3.1/docs/System-Directory.html#v:copyFileWithMetadata ))
2018-10-24 14:06:45 +00:00
John J. Camilleri
f0566a48dd
Re-specify --gf-lib-path in Make.hs, seems to be needed sometimes
2018-08-09 10:19:48 +02:00
John J. Camilleri
60f19691eb
--verbose flag shows file names, not passed on to GF
2018-08-09 09:52:41 +02:00
John J. Camilleri
e73d42379c
Make.hs: specifying --langs doesn't ignore module restrictions
...
As a result the `--langs=+...` function is no longer meaningful
2018-08-09 09:09:17 +02:00
John J. Camilleri
0130a0012d
Better output when no files specified in Make.hs
2018-08-07 11:01:02 +02:00
John J. Camilleri
32647437ad
Remove unneccessary --gf-lib-path, which could give misleading errors
2018-08-07 10:11:23 +02:00
John J. Camilleri
b76d8512e4
Updade Make.sh to read languages.csv, more specific about what to compile
2018-08-07 10:06:12 +02:00
John J. Camilleri
d994208499
Cleanup Make.hs, remove 'parse' build command.
2018-08-07 08:41:45 +02:00
John J. Camilleri
cfb6bf0301
Update language config with "All" column; fix those marked for notpresent
...
Also fix bug in boolBit
2018-08-06 21:55:58 +02:00
John J. Camilleri
bad78999dc
Make summary more explicit as it was a bit misleading
2018-08-06 21:28:29 +02:00
John J. Camilleri
bd636d805a
Simplify specifying languages in Make.hs
2018-08-06 21:08:46 +02:00
John J. Camilleri
557ae6da44
Factor out language config to CSV file
...
Compiles, not tested
2018-08-06 16:53:23 +02:00
John J. Camilleri
70297f6ac2
Add --verbose/-v switch to Make.hs
2018-08-06 10:29:42 +02:00
John J. Camilleri
e44ab11609
copy copies everything from dist, not just specified modules
...
This was problematic when copying only a module and not its dependents.
2018-08-05 17:22:46 +02:00
John J. Camilleri
59672ef8ac
Re-add argument checking in Make.hs
2018-08-04 18:44:16 +02:00
John J. Camilleri
8600112264
Search for module by name and do not require language folder
2018-08-04 18:40:40 +02:00
John J. Camilleri
7f5fae2031
Add support for building/copying individual modules in Make.hs
...
Particularly useful for ExtraEng, large monolingual dicts, etc.
2018-08-04 18:10:37 +02:00
John J. Camilleri
cc8bb02489
Remove pgf build command
2018-08-04 16:27:20 +02:00
John J. Camilleri
ade493515a
[GF Split] Post-split updates
2018-07-25 20:18:48 +02:00