Skip to content

Instantly share code, notes, and snippets.

@tpimh
Created June 7, 2015 02:35
Show Gist options
  • Save tpimh/00598a02dfbfbb6cf7a0 to your computer and use it in GitHub Desktop.
Save tpimh/00598a02dfbfbb6cf7a0 to your computer and use it in GitHub Desktop.
for i in /mingw/addons/* ; do
if [ -d $i ]; then
if [ -d $i/bin ]; then
export PATH="$PATH:$i/bin"
fi
if [ -d $i/include ]; then
export CPATH="$CPATH;$i/include"
fi
if [ -d $i/lib ]; then
export LIBRARY_PATH="$LIBRARY_PATH;$i/lib"
fi
if [ -d $i/lib/pkgconfig ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$i/lib/pkgconfig"
fi
if [ -d $i/share/pkgconfig ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$i/share/pkgconfig"
fi
if [ -f $i/install.sh ]; then
. $i/install.sh
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment