|
| 1 | +@echo off |
| 2 | +REM This is a Windows 10 Batch file for building dataset command |
| 3 | +REM from the command prompt. |
| 4 | +REM |
| 5 | +REM It requires: go version 1.12.4 or better and the cli for git installed |
| 6 | +REM |
| 7 | +go version |
| 8 | +mkdir bin |
| 9 | +echo "Getting ready to build the datatools in bin" |
| 10 | +go build -o bin\codemeta2cff.exe cmd\codemeta2cff\codemeta2cff.go |
| 11 | +go build -o bin\csv2json.exe cmd\csv2json\*.go |
| 12 | +go build -o bin\csv2mdtable.exe cmd\csv2mdtable\*.go |
| 13 | +go build -o bin\csv2xlsx.exe cmd\csv2xlsx\*.go |
| 14 | +go build -o bin\csvcleaner.exe cmd\csvcleaner\*.go |
| 15 | +go build -o bin\csvcols.exe cmd\csvcols\*.go |
| 16 | +go build -o bin\csvfind.exe cmd\csvfind\*.go |
| 17 | +go build -o bin\csvjoin.exe cmd\csvjoin\*.go |
| 18 | +go build -o bin\csvrows.exe cmd\csvrows\*.go |
| 19 | +go build -o bin\finddir.exe cmd\finddir\*.go |
| 20 | +go build -o bin\findfile.exe cmd\findfile\*.go |
| 21 | +go build -o bin\json2toml.exe cmd\json2toml\*.go |
| 22 | +go build -o bin\json2yaml.exe cmd\json2yaml\*.go |
| 23 | +go build -o bin\jsoncols.exe cmd\jsoncols\*.go |
| 24 | +go build -o bin\jsonjoin.exe cmd\jsonjoin\*.go |
| 25 | +go build -o bin\jsonmunge.exe cmd\jsonmunge\*.go |
| 26 | +go build -o bin\jsonrange.exe cmd\jsonrange\*.go |
| 27 | +go build -o bin\mergepath.exe cmd\mergepath\*.go |
| 28 | +go build -o bin\range.exe cmd\range\*.go |
| 29 | +go build -o bin\reldate.exe cmd\reldate\*.go |
| 30 | +go build -o bin\string.exe cmd\string\*.go |
| 31 | +go build -o bin\timefmt.exe cmd\timefmt\*.go |
| 32 | +go build -o bin\toml2json.exe cmd\toml2json\*.go |
| 33 | +go build -o bin\urlparse.exe cmd\urlparse\*.go |
| 34 | +go build -o bin\xlsx2csv.exe cmd\xlsx2csv\*.go |
| 35 | +go build -o bin\xlsx2json.exe cmd\xlsxjson\*.go |
| 36 | +go build -o bin\yaml2json.exe cmd\yaml2json\*.go |
| 37 | + |
| 38 | +echo "Checking compile should see version number of dataset" |
| 39 | +bin\codemeta2cff.exe -version |
| 40 | +bin\csv2json.exe -version |
| 41 | +bin\csv2mdtable.exe -version |
| 42 | +bin\csv2xlsx.exe -version |
| 43 | +bin\csvcleaner.exe -version |
| 44 | +bin\csvcols.exe -version |
| 45 | +bin\csvfind.exe -version |
| 46 | +bin\csvjoin.exe -version |
| 47 | +bin\csvrows.exe -version |
| 48 | +bin\finddir.exe -version |
| 49 | +bin\findfile.exe -version |
| 50 | +bin\json2toml.exe -version |
| 51 | +bin\json2yaml.exe -version |
| 52 | +bin\jsoncols.exe -version |
| 53 | +bin\jsonjoin.exe -version |
| 54 | +bin\jsonmunge.exe -version |
| 55 | +bin\jsonrange.exe -version |
| 56 | +bin\mergepath.exe -version |
| 57 | +bin\range.exe -version |
| 58 | +bin\reldate.exe -version |
| 59 | +bin\string.exe -version |
| 60 | +bin\timefmt.exe -version |
| 61 | +bin\toml2json.exe -version |
| 62 | +bin\urlparse.exe -version |
| 63 | +bin\xlsx2csv.exe -version |
| 64 | +bin\xlsx2json.exe -version |
| 65 | +bin\yaml2json.exe -version |
| 66 | +echo "If OK, you can now copy the dataset.exe to %USERPROFILE%\go\bin" |
| 67 | +echo "" |
| 68 | +echo " copy bin\* %USERPROFILE%\go\bin |
| 69 | +echo "" |
0 commit comments