more sanity in the scripts

This commit is contained in:
George Hotz 2014-07-28 14:55:25 -07:00
parent 949322e79c
commit 20001f8fcb
3 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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