env.sh 475 B

123456789101112131415
  1. #!/bin/bash
  2. #I don't know if this works with just sh
  3. #XXX: this isn't needed when compiled with ./configure --enable-rpath
  4. rustroot='/home/zazdxscf/build/1nonpkgs/rust/rust/x86_64-unknown-linux-gnu/stage2/'
  5. unalias rustc >/dev/null 2>&1
  6. alias rustc="LD_LIBRARY_PATH=\"$rustroot/lib\" \"$rustroot\"/bin/rustc"
  7. #Aliases are not expanded when the shell is notinteractive(eg. in scripts), unless the expand_aliases shell option is set using shopt:
  8. shopt -s expand_aliases