diff options
author | Zero~Informatique | 2020-02-13 16:30:38 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-13 16:43:07 +0100 |
commit | 9c2af5dcd2d2c8754e4c74e02141822c0964a5a8 (patch) | |
tree | 280836d2d4e931a294e1beebf37c0ee886901b5f | |
parent | af4660b4c4fea455dfffbf2d966bae425ed6effb (diff) | |
download | ldgallery-9c2af5dcd2d2c8754e4c74e02141822c0964a5a8.tar.gz |
moved utility scripts to their dedicated folder
-rw-r--r-- | scripts/.gitignore | 1 | ||||
-rw-r--r-- | scripts/readme.md | 24 | ||||
-rw-r--r-- | scripts/win_build.cmd (renamed from compiler/win_build.cmd) | 1 | ||||
-rw-r--r-- | scripts/win_compile_example.cmd (renamed from compiler/win_compile_example.cmd) | 1 | ||||
-rw-r--r-- | scripts/win_generate_yaml_files.cmd | 21 | ||||
-rw-r--r-- | scripts/win_help.cmd (renamed from compiler/win_help.cmd) | 1 | ||||
-rw-r--r-- | scripts/win_start_vueui.cmd (renamed from viewer/win_start_vueui.cmd) | 1 |
7 files changed, 50 insertions, 0 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..2cb7368 --- /dev/null +++ b/scripts/.gitignore | |||
@@ -0,0 +1 @@ | |||
local_* | |||
diff --git a/scripts/readme.md b/scripts/readme.md new file mode 100644 index 0000000..9bb97ec --- /dev/null +++ b/scripts/readme.md | |||
@@ -0,0 +1,24 @@ | |||
1 | # ldgallery scripts | ||
2 | |||
3 | Some utilities. | ||
4 | Prefix the filename of your custom script with "local_", they are git-ignored. | ||
5 | |||
6 | ## Build | ||
7 | |||
8 | ### win_build.cmd | ||
9 | |||
10 | Build the compiler. See {../compiler/readme.md} | ||
11 | |||
12 | ### win_help.cmd | ||
13 | |||
14 | Shows the compiler's command line help. | ||
15 | |||
16 | ### win_compile_example.cmd | ||
17 | |||
18 | Compile the example gallery, for demonstration purposes. See {../example/readme.md} | ||
19 | |||
20 | ### win_generate_yaml_files.cmd | ||
21 | |||
22 | Generates template YAML files for your gallery. | ||
23 | Copy this CMD to your pictures folder. | ||
24 | |||
diff --git a/compiler/win_build.cmd b/scripts/win_build.cmd index 33559fa..ed96211 100644 --- a/compiler/win_build.cmd +++ b/scripts/win_build.cmd | |||
@@ -1,4 +1,5 @@ | |||
1 | @echo off | 1 | @echo off |
2 | cd ..\compiler\ | ||
2 | stack setup | 3 | stack setup |
3 | stack build | 4 | stack build |
4 | pause \ No newline at end of file | 5 | pause \ No newline at end of file |
diff --git a/compiler/win_compile_example.cmd b/scripts/win_compile_example.cmd index 6e166f8..e89b302 100644 --- a/compiler/win_compile_example.cmd +++ b/scripts/win_compile_example.cmd | |||
@@ -5,5 +5,6 @@ IF ERRORLEVEL 2 SET rebuild= | |||
5 | echo. | 5 | echo. |
6 | 6 | ||
7 | @echo on | 7 | @echo on |
8 | cd ..\compiler\ | ||
8 | stack exec ldgallery-compiler-exe -- %rebuild% --clean-output -i=../example/ -o=../example/out/ | 9 | stack exec ldgallery-compiler-exe -- %rebuild% --clean-output -i=../example/ -o=../example/out/ |
9 | @pause | 10 | @pause |
diff --git a/scripts/win_generate_yaml_files.cmd b/scripts/win_generate_yaml_files.cmd new file mode 100644 index 0000000..edb7f91 --- /dev/null +++ b/scripts/win_generate_yaml_files.cmd | |||
@@ -0,0 +1,21 @@ | |||
1 | @echo off | ||
2 | |||
3 | REM Copy this file to your picture directory to quickly generate the YAML templates | ||
4 | REM =============================================================================== | ||
5 | |||
6 | for %%f in (*.jpg,*.png,*.gif) do ( | ||
7 | if exist "%%f.yaml" goto CONTINUE | ||
8 | @echo %%f | ||
9 | ( | ||
10 | echo title: %%f | ||
11 | echo. | ||
12 | echo datetime: | ||
13 | echo. | ||
14 | echo description: | ||
15 | echo. | ||
16 | echo tags: | ||
17 | echo - not_tagged | ||
18 | ) >> "%%f.yaml" | ||
19 | :CONTINUE | ||
20 | rem | ||
21 | ) | ||
diff --git a/compiler/win_help.cmd b/scripts/win_help.cmd index d720f65..117205a 100644 --- a/compiler/win_help.cmd +++ b/scripts/win_help.cmd | |||
@@ -1,4 +1,5 @@ | |||
1 | @echo off | 1 | @echo off |
2 | cd ..\compiler\ | ||
2 | stack exec ldgallery-compiler-exe -- --help | 3 | stack exec ldgallery-compiler-exe -- --help |
3 | @echo. | 4 | @echo. |
4 | @pause | 5 | @pause |
diff --git a/viewer/win_start_vueui.cmd b/scripts/win_start_vueui.cmd index 7825df3..b79a7b7 100644 --- a/viewer/win_start_vueui.cmd +++ b/scripts/win_start_vueui.cmd | |||
@@ -1,6 +1,7 @@ | |||
1 | @echo off | 1 | @echo off |
2 | set NODE_VERSION=12.14.0 | 2 | set NODE_VERSION=12.14.0 |
3 | set VUECLI_VERSION=4.2.2 | 3 | set VUECLI_VERSION=4.2.2 |
4 | cd ..\viewer\ | ||
4 | 5 | ||
5 | chcp 65001 | 6 | chcp 65001 |
6 | echo. | 7 | echo. |