zig_setup.sh 386 B

1234567891011121314
  1. #!/bin/sh
  2. # Milis Linux Hızlı Zig Derleyici Kurucu 2022
  3. [ -z $1 ] && exit 1
  4. version=$1
  5. mkdir -p $HOME/{.cache,.local}
  6. cd $HOME/.cache
  7. wget https://ziglang.org/download/${version}/zig-linux-x86_64-${version}.tar.xz
  8. rm -rf ../.local/zig && tar -C ../.local -xzf zig-linux-x86_64-${version}.tar.xz
  9. cd ../.local
  10. mv zig-linux-x86_64-${version} zig
  11. export PATH=$PATH:$HOME/.local/zig/bin