Skip to content

Instantly share code, notes, and snippets.

@spino327
Last active April 27, 2018 18:54
Show Gist options
  • Save spino327/f0904a8f26a78e0bfbbe3c4816d83ea7 to your computer and use it in GitHub Desktop.
Save spino327/f0904a8f26a78e0bfbbe3c4816d83ea7 to your computer and use it in GitHub Desktop.
Sample configuration files to use with the sourcing_tool (https://github.com/spino327/sourcing_tool)
#############################################################
# BASIC env #
#############################################################
echo "Hello Master! this is $SOURCING_TOOL_NAME."
#############
# BASIC STUFF
#############
export PATH=$HOME/bin:$PATH # to run programs that I set at ~/bin
#############
# USER STUFF
#############
# Colors
export CLICOLOR=1
# brew.sh
export PATH=`brew --repository`/../sbin:$PATH
# python from brew.sh
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
# bash
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# Servers
export SOME=127.0.0.1
#############################################################
# JDK8 env #
#############################################################
echo "Hello Master! this is $SOURCING_TOOL_NAME."
#############
# Dependencies
#############
$SOURCING_TOOL_DEP basic.sh
#############
# USER STUFF
#############
# Java
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_141`
export DYLD_LIBRARY_PATH=$JAVA_HOME/jre/lib/server:$DYLD_LIBRARY_PATH
#############################################################
# llvm_dev env #
#############################################################
echo Hello Master! this is $SOURCING_TOOL_NAME using llvm relase source code.
# loading dependencies
$SOURCING_TOOL_DEP basic.sh
######
# LLVM
######
VERSION=3.9.0
export CC=clang
export CXX=clang++
# LLVM paths
export LLVM_HOME=$HOME/opt/llvm
export LLVM_SOURCE=$HOME/local/llvm
export LLVM_BUILD=$HOME/local/llvm-build
export PATH=$LLVM_HOME/bin:$PATH:$LLVM_BUILD/bin
# python related
export LLDB=`lldb -P`
export PYTHONPATH=`lldb -P`:$LLVM_HOME/lib:$LLVM_SOURCE/tools/clang/bindings/python/:$PYTHONPATH
# include paths
export C_INCLUDE_PATH=$LLVM_HOME/include:$LLVM_HOME/lib/clang/$VERSION/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$LLVM_HOME/include:$LLVM_HOME/lib/clang/$VERSION/include:$LLVM_HOME/include/c++/v1:$CPLUS_INCLUDE_PATH
# libraries paths
export LIBRARY_PATH=$LLVM_HOME/lib:$LIBRARY_PATH
export DYLD_LIBRARY_PATH=$LLVM_HOME/lib:$DYLD_LIBRARY_PATH
#export DYLD_PRINT_LIBRARIES=y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment