1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-26 07:39:04 +02:00
keeweb/dev-env.sh
Markus Heiser 00dcd900e3 dev-env.sh: use HTTP schema as default for cloning
It's what will work for the most of users.

Suggested-by: @antelle
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2019-02-22 18:58:29 +01:00

33 lines
771 B
Bash
Executable File

#!/usr/bin/env bash
SCHEMA=${SCHEMA:-http}
KEEWEB_GH=git@github.com:keeweb
if [[ "$SCHEMA" == 'http' ]]; then
KEEWEB_GH=https://github.com/keeweb
fi
echo "Cloning KeeWeb ($KEEWEB_GH) into $PWD/keeweb..."
mkdir keeweb
pushd keeweb >/dev/null
git clone $KEEWEB_GH/keeweb.git -b develop keeweb
pushd keeweb >/dev/null
git worktree add ../keeweb-dist gh-pages
popd >/dev/null
git clone $KEEWEB_GH/favicon-proxy.git favicon-proxy
git clone $KEEWEB_GH/kdbxweb.git kdbxweb
git clone $KEEWEB_GH/beta.keeweb.info.git keeweb-beta
git clone $KEEWEB_GH/keeweb-site.git -b gh-pages keeweb-site
git clone $KEEWEB_GH/keeweb-plugins.git keeweb-plugins
popd > /dev/null
mkdir keeweb/keys
echo kdbxweb/ > keeweb/.eslintignore
echo "Done! KeeWeb is cloned into $PWD/keeweb"