Skip to content

Instantly share code, notes, and snippets.

@kentfredric
Forked from rickeyvisinski-kanban/lighttable
Last active December 14, 2015 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentfredric/5061054 to your computer and use it in GitHub Desktop.
Save kentfredric/5061054 to your computer and use it in GitHub Desktop.
#!/bin/bash
BIN=LightTable
HERE=$PWD
ULIBS="$HERE/lib";
#UDEV_SRC=http://distfiles.gentoo.org/distfiles/google-chrome-libudev-0.13.1-x86.tar.xz
UDEV_SRC=http://distfiles.gentoo.org/distfiles/google-chrome-libudev-0.13.1-amd64.tar.xz
if [[ ! -e "$ULIBS" ]]; then
mkdir -p "$ULIBS";
wget -O libudev.tar.xz $UDEV_SRC
tar --strip-components=3 -C $ULIBS -xf libudev.tar.xz
fi
if [[ -n "$LD_LIBRARY_PATH" ]]; then
LD_LIBRARY_PATH="$ULIBS:/lib:$LD_LIBRARY_PATH"
else
LD_LIBRARY_PATH="$ULIBS:/lib"
fi
export LD_LIBRARY_PATH
exec -a "$0" "$HERE/$BIN" "$@" &
# vim: set ft=sh ts=4 sw=4 et :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment