diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-20 18:15:16 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-20 18:15:16 -0200 |
commit | 3b2c8dfd3b5f64c5941d906ce005b68c81996504 (patch) | |
tree | c83a65f63adcdf7beb9db3a9bd324f96af794874 | |
download | qutebrowser-3b2c8dfd3b5f64c5941d906ce005b68c81996504.tar.gz qutebrowser-3b2c8dfd3b5f64c5941d906ce005b68c81996504.tar.bz2 |
Initial import
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | dist | 0 | ||||
-rwxr-xr-x | qutebrowser | 25 |
3 files changed, 28 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f8fe056 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dist"] + path = dist + url = https://github.com/qutebrowser/qutebrowser.git diff --git a/dist b/dist new file mode 160000 +Subproject 5c00eea122eaf4c645c2eec3b3e01b9ee18c02e diff --git a/qutebrowser b/qutebrowser new file mode 100755 index 0000000..2a22afd --- /dev/null +++ b/qutebrowser @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Wrapper for qutebrowser +# + +if [ -x "$HOME/apps/qutebrowser/dist/.venv/bin/python3" ]; then + # See http://qutebrowser.org/doc/install.html#tox + #export LD_LIBRARY_PATH=/usr/lib/openssl-1.0 + $HOME/apps/qutebrowser/dist/.venv/bin/python3 -m qutebrowser "$@" +else + # Grab quebrowser source + git submodule update --init + + # Check for tox + if ! which tox &> /dev/null; then + sudo apt install tox + fi + + # Build qutebrowser + cd qutebrowser + tox -e mkvenv-pypi + + # Run this script again + $0 +fi |