Last active
March 16, 2016 04:12
-
-
Save meta1203/7cc9a4c97f0df51bbaf3 to your computer and use it in GitHub Desktop.
A shell script for getting logs through steam/bumblebee
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
stamp=$(date +%Y%m%d-%H:%M:%S) | |
command=$(echo $@ | cut -f1 -d" ") | |
command="${command##*/}-" | |
stamp=$command$stamp | |
echo $stamp | |
mkdir -p /tmp/gamelogs | |
echo "$@" &> "/tmp/gamelogs/$stamp.txt" | |
echo -e "\n" >> "/tmp/gamelogs/$stamp.txt" | |
export __GLVND_DISALLOW_PATCHING=1 | |
export vblank_mode=0 | |
export LD_PRELOAD="/usr/\$LIB/libstdc++.so.6 ${LD_PRELOAD}" | |
echo "$LD_PRELOAD" >> "/tmp/gamelogs/$stamp.txt" | |
## [engine] "$@" &>> "/tmp/gamelogs/$stamp.txt" | |
if [ -z "$NOPRIMUS" ]; | |
then optirun -b primus "$@" &>> "/tmp/gamelogs/$stamp.txt"; | |
else optirun "$@" &>> "/tmp/gamelogs/$stamp.txt"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment