Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95b1a9f

Browse files
authored
Merge branch 'develop' into feature/improved_install_scripts
2 parents e1a3fa7 + 65d0169 commit 95b1a9f

2 files changed

Lines changed: 38 additions & 4 deletions

File tree

.travis/push_docs_to_gh_pages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
8585
fi
8686
#If build running on a TAG - it's a new release - need to add it to documentation
8787
if [ -n "${TRAVIS_TAG}" ]; then
88-
latest_release=" - [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
89-
sed -i '7s@.*@'"Latest release ${latest_release}"'@' index.md
88+
latest_release=" [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
89+
sed -i '7s@.*@'" - Latest release: ${latest_release}"'@' index.md
90+
#add entry to the end of file - ## Released Version Doc History
91+
echo "- ${latest_release}">>index.md
9092
fi
9193
#replace 4th line in log
9294
sed -i '8s@.*@'"${latest}"'@' index.md

docs/userguide/install.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Downloading latest version of utPLSQL
22

3-
It is quite easy to download latest version of utPLSQL from github on Unix machines.
4-
Here is a little snippet that can be handy for downloading latest version.
3+
It is quite easy to download latest version of utPLSQL from github on both Unix/Linux as well as Windows machines.
4+
Below are little snippets that can be handy for downloading latest version.
5+
6+
## Unix/Linux
7+
58
```bash
69
#!/bin/bash
710
# Get the url to latest release "zip" file
@@ -18,6 +21,35 @@ You may download with a one-liner if that is more convenient.
1821
curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
1922
```
2023

24+
##Windows
25+
26+
To run the script on windows you will need [PowerShell 3.0](https://blogs.technet.microsoft.com/heyscriptingguy/2013/06/02/weekend-scripter-install-powershell-3-0-on-windows-7/) or above.
27+
You will also need .NET 4.0 Framework or above.
28+
29+
```batch
30+
$archiveName = 'utPLSQL.zip'
31+
$latestRepo = Invoke-WebRequest https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest
32+
$repo = $latestRepo.Content | Convertfrom-Json
33+
34+
$urlList = $repo.assets.browser_download_url
35+
36+
Add-Type -assembly "system.io.compression.filesystem"
37+
38+
foreach ($i in $urlList) {
39+
40+
$fileName = $i.substring($i.LastIndexOf("/") + 1)
41+
42+
if ( $fileName.substring($fileName.LastIndexOf(".") + 1) -eq 'zip' ) {
43+
Invoke-WebRequest $i -OutFile $archiveName
44+
$fileLocation = Get-ChildItem | where {$_.Name -eq $archiveName}
45+
46+
if ($fileLocation) {
47+
[io.compression.zipfile]::ExtractToDirectory($($fileLocation.FullName),$($fileLocation.DirectoryName))
48+
}
49+
}
50+
}
51+
```
52+
2153
# Headless installation
2254

2355
To simply install the utPLSQL into a new database schema and grant it to public, execute the script `install_headless.sql` as SYSDBA.

0 commit comments

Comments
 (0)