From e449e6885d623cbf9ce2fed844d63047613b3569 Mon Sep 17 00:00:00 2001
From: Yimura <24669514+Yimura@users.noreply.github.com>
Date: Fri, 28 Oct 2022 21:34:32 +0200
Subject: [PATCH] feat(repo): add scripts (#533)

---
 open_cmd_prompt.bat                          | 1 +
 scripts/fix_recursive.bat                    | 1 +
 GenerateProjects.bat => scripts/gen_proj.bat | 2 +-
 scripts/open_vs.bat                          | 1 +
 scripts/switch_master_update.bat             | 1 +
 scripts/update_repo.bat                      | 1 +
 6 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 open_cmd_prompt.bat
 create mode 100644 scripts/fix_recursive.bat
 rename GenerateProjects.bat => scripts/gen_proj.bat (73%)
 create mode 100644 scripts/open_vs.bat
 create mode 100644 scripts/switch_master_update.bat
 create mode 100644 scripts/update_repo.bat

diff --git a/open_cmd_prompt.bat b/open_cmd_prompt.bat
new file mode 100644
index 00000000..a03f9d44
--- /dev/null
+++ b/open_cmd_prompt.bat
@@ -0,0 +1 @@
+start cmd.exe
\ No newline at end of file
diff --git a/scripts/fix_recursive.bat b/scripts/fix_recursive.bat
new file mode 100644
index 00000000..a59fa05d
--- /dev/null
+++ b/scripts/fix_recursive.bat
@@ -0,0 +1 @@
+git submodule update --init
\ No newline at end of file
diff --git a/GenerateProjects.bat b/scripts/gen_proj.bat
similarity index 73%
rename from GenerateProjects.bat
rename to scripts/gen_proj.bat
index c44d0d69..dae0891a 100644
--- a/GenerateProjects.bat
+++ b/scripts/gen_proj.bat
@@ -1,5 +1,5 @@
 @echo off
-premake5 vs2019
+premake5 vs2022
 IF %ERRORLEVEL% NEQ 0 (
   PAUSE
 )
diff --git a/scripts/open_vs.bat b/scripts/open_vs.bat
new file mode 100644
index 00000000..df0e2807
--- /dev/null
+++ b/scripts/open_vs.bat
@@ -0,0 +1 @@
+start BigBaseV2.sln
\ No newline at end of file
diff --git a/scripts/switch_master_update.bat b/scripts/switch_master_update.bat
new file mode 100644
index 00000000..9b4e1c3d
--- /dev/null
+++ b/scripts/switch_master_update.bat
@@ -0,0 +1 @@
+git checkout master && call update_repo.bat
\ No newline at end of file
diff --git a/scripts/update_repo.bat b/scripts/update_repo.bat
new file mode 100644
index 00000000..954bfea2
--- /dev/null
+++ b/scripts/update_repo.bat
@@ -0,0 +1 @@
+git pull && git submodule update
\ No newline at end of file