Advertisement
Guest User

Untitled

a guest
Oct 17th, 2016
1,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #!/bin/sh -e
  2. # Copyright (C) 2013-2016 Michael Gilbert <mgilbert@debian.org>
  3. # License: MIT
  4.  
  5. config=$HOME/.steam
  6. ubuntu32=$config/ubuntu12_32
  7. steam=$ubuntu32/steam
  8. runtime=$ubuntu32/steam-runtime
  9.  
  10. real=/usr/lib/games/steam/steam
  11.  
  12. # use C locale (bug #764311)
  13. test -n "$LANG" || export LANG=C
  14.  
  15. # do an initial update when expected pieces are missing
  16. test ! -d $config && rm -rf $config && mkdir -p $config || true
  17. test ! -x $config/steam.sh && rm -rf $config/package $steam || true
  18. test ! -d $ubuntu32 && rm -rf $ubuntu32 && mkdir -p $ubuntu32 || true
  19. test ! -x $steam && rm -rf $steam && cp $real $steam && $steam || true
  20. test ! -e $runtime.tar.xz && cat $runtime.tar.xz.part* > $runtime.tar.xz || true
  21. test ! -d $runtime && cd $ubuntu32 && tar xf steam-runtime.tar.xz && \
  22. md5sum steam-runtime.tar.xz > steam-runtime/checksum || true
  23.  
  24. # remove steam-runtime's libstdc++ files, which are incompatible with
  25. # newer mesa drivers (https://bugs.freedesktop.org/78242)
  26. find $runtime -name libstdc++.so\* -delete
  27.  
  28. # remove steam-runtime's libgpg-error files for the same reason
  29. find $runtime -name libgpg-error.so\* -delete
  30.  
  31. # remove other steam-runtime's files
  32. find $runtime -name libgcc_s.so\* -delete
  33. find $runtime -name libxcb.so\* -delete
  34.  
  35. # launch the Valve run script
  36. test -x $config/steam.sh && $config/steam.sh "$@" 2>$config/error.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement