Created
June 12, 2012 02:21
-
-
Save changtimwu/2913990 to your computer and use it in GitHub Desktop.
to capture all var exported during CPSS build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
envdiff() | |
{ | |
nm=$1 | |
if [ ! -f /tmp/pre_$nm.env ]; then | |
env > /tmp/pre_$nm.env | |
else | |
env > /tmp/post_$nm.env | |
diff -ur /tmp/pre_$nm.env /tmp/post_$nm.env >> /tmp/allenv.diff | |
fi | |
} | |
rm -f /tmp/*.env | |
rm -f /tmp/allenv.diff | |
envdiff "qrt" | |
export mygo=3 | |
envdiff "qrt" | |
envdiff "kuo" | |
export yougo=4 | |
envdiff "kuo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment