mirror of
https://github.com/geohot/qira
synced 2024-12-27 22:39:42 +03:00
more sanity in the scripts
This commit is contained in:
parent
949322e79c
commit
20001f8fcb
@ -1,5 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
DEBOOTSTRAP_DIR=/usr/share/debootstrap
|
||||
|
||||
if [ ! -d "$DEBOOTSTRAP_DIR" ]; then
|
||||
echo "this script requires debootstrap to be installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# this is ubuntu specific i think
|
||||
fetcharch() {
|
||||
ARCH="$1"
|
||||
@ -17,7 +24,6 @@ fetcharch() {
|
||||
|
||||
mkdir -p "$TARGET" "$TARGET/debootstrap"
|
||||
|
||||
DEBOOTSTRAP_DIR=/usr/share/debootstrap
|
||||
. $DEBOOTSTRAP_DIR/functions
|
||||
. $DEBOOTSTRAP_DIR/scripts/$SUITE
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
#!/bin/bash -e
|
||||
|
||||
# default is just pip, but on things like arch where python 3 is default, it's pip2
|
||||
PIP="pip"
|
||||
@ -18,6 +17,6 @@ fi
|
||||
echo "installing pip packages"
|
||||
sudo $PIP install flask-socketio pillow ./qiradb
|
||||
|
||||
echo "making symlinks"
|
||||
echo "making symlink"
|
||||
sudo ln -sf $(pwd)/qira /usr/local/bin/qira
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
from setuptools import setup, Extension
|
||||
|
||||
# should be a symlink to the root
|
||||
# could also add the git rev to this?
|
||||
version=open('VERSION').read().strip()
|
||||
|
||||
# the c++ extension module
|
||||
|
Loading…
Reference in New Issue
Block a user