nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 27 lines 862 B view raw
1#!@bash@/bin/bash -e 2 3# Always run steamcmd in the user's Steam root. 4STEAMROOT=@steamRoot@ 5 6# Add coreutils to PATH for mkdir, ln and cp used below 7PATH=$PATH${PATH:+:}@coreutils@/bin 8 9# Create a facsimile Steam root if it doesn't exist. 10if [ ! -e "$STEAMROOT" ]; then 11 mkdir -p "$STEAMROOT"/{appcache,config,logs,Steamapps/common} 12 mkdir -p ~/.steam 13 ln -sf "$STEAMROOT" ~/.steam/root 14 ln -sf "$STEAMROOT" ~/.steam/steam 15fi 16 17# Copy the system steamcmd install to the Steam root. If we don't do 18# this, steamcmd assumes the path to `steamcmd` is the Steam root. 19# Note that symlinks don't work here. 20if [ ! -e "$STEAMROOT/steamcmd.sh" ]; then 21 mkdir -p "$STEAMROOT/linux32" 22 # steamcmd.sh will replace these on first use 23 cd @out@/share/steamcmd 24 find . -type f -exec install -Dm 755 "{}" "$STEAMROOT/{}" \; 25fi 26 27@steamRun@ "$STEAMROOT/steamcmd.sh" "$@"