Added shell scripts to build binaries, test and build installers for Windows under...
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 19 Oct 2018 02:04:15 +0000 (11:04 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 19 Oct 2018 02:04:15 +0000 (11:04 +0900)
wbuild.sh [new file with mode: 0644]
wconfig.sh [new file with mode: 0644]
winstaller.sh [new file with mode: 0644]
wregress.sh [new file with mode: 0644]

diff --git a/wbuild.sh b/wbuild.sh
new file mode 100644 (file)
index 0000000..fa1046c
--- /dev/null
+++ b/wbuild.sh
@@ -0,0 +1,17 @@
+#/bin/bash
+##
+## Build all dlls of psqlodbc project for Windows
+##     from WSL or cygwin
+##
+pscript=winbuild/BuildAll.ps1
+if [ $# -gt 0 ]; then
+   if [ $1 = "/?" ]; then
+       powershell.exe Get-Help $pscript -detailed
+       exit 0
+   elif [ $1 = "-?" ]; then
+       shift
+       powershell.exe Get-Help $pscript $*
+       exit 0
+   fi
+fi
+powershell.exe $pscript $*
diff --git a/wconfig.sh b/wconfig.sh
new file mode 100644 (file)
index 0000000..90bc724
--- /dev/null
@@ -0,0 +1,5 @@
+#/bin/bash
+##
+## Start editConfiguration with a mimimized console window
+##
+Powershell.exe -Sta -WindowStyle Minimized winbuild/editConfiguration.ps1 $*
diff --git a/winstaller.sh b/winstaller.sh
new file mode 100644 (file)
index 0000000..8d6e345
--- /dev/null
@@ -0,0 +1,17 @@
+#/bin/bash
+##
+## Build installers of psqlodbc project for Windows
+##     from WSL or cygwin
+##
+pscript=installer/buildInstallers.ps1
+if [ $# -gt 0 ]; then
+   if [ $1 = "/?" ]; then
+       powershell.exe Get-Help $pscript -detailed
+       exit 0
+   elif [ $1 = "-?" ]; then
+       shift
+       powershell.exe Get-Help $pscript $*
+       exit 0
+   fi
+fi
+powershell.exe $pscript $*
diff --git a/wregress.sh b/wregress.sh
new file mode 100644 (file)
index 0000000..ec4f0b9
--- /dev/null
@@ -0,0 +1,17 @@
+#/bin/bash
+##
+## regression test on Windows using MSBuild 
+##     from WSL or cygwin
+##
+pscript=winbuild/regress.ps1
+if [ $# -gt 0 ]; then
+   if [ $1 = "/?" ]; then
+       powershell.exe Get-Help $pscript -detailed
+       exit 0
+   elif [ $1 = "-?" ]; then
+       shift
+       powershell.exe Get-Help $pscript $*
+       exit 0
+   fi
+fi
+powershell.exe $pscript $*