Skip to content

Instantly share code, notes, and snippets.

@ldenman
Created July 20, 2012 17:06
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 ldenman/3151919 to your computer and use it in GitHub Desktop.
Save ldenman/3151919 to your computer and use it in GitHub Desktop.
#!/bin/sh
root=$(pwd)
prefix="$root/vendor/tidy"
# build into $prefix
/bin/sh build/gnuauto/setup.sh
./configure --prefix="${prefix}"
make
make DESTDIR=$prefix install
# write profile.d
mkdir -p $root/profile.d
cat >$root/profile.d/tidy <<EOF
INCLUDE_PATH="/app/vendor/tidy/include:${INCLUDE_PATH}"
LD_LIBRARY_PATH="/app/vendor/tidy/lib:${LD_LIBRARY_PATH}"
PATH="/app/vendor/tidy/bin:${PATH}"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment