aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/.gitignore1
-rw-r--r--scripts/readme.md24
-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.cmd21
-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
3Some utilities.
4Prefix the filename of your custom script with "local_", they are git-ignored.
5
6## Build
7
8### win_build.cmd
9
10Build the compiler. See {../compiler/readme.md}
11
12### win_help.cmd
13
14Shows the compiler's command line help.
15
16### win_compile_example.cmd
17
18Compile the example gallery, for demonstration purposes. See {../example/readme.md}
19
20### win_generate_yaml_files.cmd
21
22Generates template YAML files for your gallery.
23Copy 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
2cd ..\compiler\
2stack setup 3stack setup
3stack build 4stack build
4pause \ No newline at end of file 5pause \ 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=
5echo. 5echo.
6 6
7@echo on 7@echo on
8cd ..\compiler\
8stack exec ldgallery-compiler-exe -- %rebuild% --clean-output -i=../example/ -o=../example/out/ 9stack 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
3REM Copy this file to your picture directory to quickly generate the YAML templates
4REM ===============================================================================
5
6for %%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
2cd ..\compiler\
2stack exec ldgallery-compiler-exe -- --help 3stack 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
2set NODE_VERSION=12.14.0 2set NODE_VERSION=12.14.0
3set VUECLI_VERSION=4.2.2 3set VUECLI_VERSION=4.2.2
4cd ..\viewer\
4 5
5chcp 65001 6chcp 65001
6echo. 7echo.