Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SymmetricDS install script (for Unix-like OS) #251

Merged
merged 2 commits into from Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
symmetricds

# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -47,3 +47,9 @@ Run `python manage.py runserver` from the root of this Git repo

# HOWTO Run tests locally
Run `python manage.py test`

# HOWTO Install SymmetricDS
```
cd symmetricds
make install
```
20 changes: 20 additions & 0 deletions symmetricds/Makefile
@@ -0,0 +1,20 @@
SYMD_DOWNLOAD_URL=https://sourceforge.net/projects/symmetricds/files/symmetricds/symmetricds-3.8/symmetric-server-3.8.43.zip/download

symmetricds.zip:
$(if $(shell command -v wget 2> /dev/null),\
wget -O symmetricds.zip ${SYMD_DOWNLOAD_URL},\
curl -Lo symmetricds.zip ${SYMD_DOWNLOAD_URL} \
)
touch $@

symmetricds: symmetricds.zip
unzip symmetricds.zip
mv symmetric-server-3.8.43 symmetricds
touch $@

# https://stackoverflow.com/a/37197276/1556838
install: symmetricds
$(if $(shell command -v java 2> /dev/null),$(info Found `java`),$(error Please install `java`))

clean:
rm -rf symmetricds.zip symmetricds