From 06d1edd0c8a51c271cb2c432b138771bc230e18c Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Thu, 20 Jan 2022 22:16:51 +0700 Subject: [PATCH] Revert "more updatess" This reverts commit 6f1a65c9b3141b8486b25d57a4322f191fcc32c2. --- bash/.bashrc | 2 -- bin/degit | 2 +- scripts/git.sh | 2 +- scripts/go.sh | 9 ++++----- scripts/janet.sh | 32 ++++++++------------------------ scripts/julia.sh | 6 ++---- scripts/python.sh | 5 +---- 7 files changed, 17 insertions(+), 41 deletions(-) mode change 100755 => 100644 scripts/janet.sh diff --git a/bash/.bashrc b/bash/.bashrc index 060e9c0..278dd11 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -90,8 +90,6 @@ fi #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases -alias cat=bat -alias ls=exa alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' diff --git a/bin/degit b/bin/degit index e03ffe3..51ede23 100755 --- a/bin/degit +++ b/bin/degit @@ -27,4 +27,4 @@ else end run(`git clone --depth=1 $repo $directory`) -run(`rm -rf $directory/.git`) +run(`rm -rf $directory/.git`) \ No newline at end of file diff --git a/scripts/git.sh b/scripts/git.sh index 56d4f92..a7e2799 100755 --- a/scripts/git.sh +++ b/scripts/git.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="2.34.1" +VERSION="2.34.0" function install () { cd ~ diff --git a/scripts/go.sh b/scripts/go.sh index d6dd6c6..4f2aa24 100755 --- a/scripts/go.sh +++ b/scripts/go.sh @@ -5,12 +5,11 @@ VERSION="1.17.6" function install () { echo "installing go" cd ~ - wget https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz - echo "231654bbf2dab3d86c1619ce799e77b03d96f9b50770297c8f4dff8836fc8ca2" > go${VERSION}.linux-amd64.tar.gz.sha256 - # sha256sum -c go${VERSION}.linux-amd64.tar.gz.sha256 - sudo tar -C ${HOME}/go -xzf go${VERSION}.linux-amd64.tar.gz + wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz + sudo rm -rf /usr/local/go + sudo tar -C /usr/local -xzf go${VERSION}.linux-amd64.tar.gz sudo rm go${VERSION}.linux-amd64.tar.gz - sudo rm go${VERSION}.linux-amd64.tar.gz.sha256 + sudo rm -rf ${HOME}/.config/go sudo mkdir ${HOME}/.config/go sudo ln -s ${DOTFILES_PATH}/go/env ${HOME}/.config/go/env printf "\n\n" diff --git a/scripts/janet.sh b/scripts/janet.sh old mode 100755 new mode 100644 index a655d10..e550ede --- a/scripts/janet.sh +++ b/scripts/janet.sh @@ -1,37 +1,21 @@ #!/usr/bin/env bash -VERSION="1.19.2" +VERSION="1.18.1" function install () { cd ~ - wget https://github.com/janet-lang/janet/archive/refs/tags/v${VERSION}.tar.gz - tar zxvf v${VERSION}.tar.gz - cd janet-${VERSION} - sudo make - sudo make test - sudo mv -v build bin - cd ~ - sudo mv -v janet-${VERSION} /opt/janet - sudo rm v${VERSION}.tar.gz - sudo rm -rf janet-${VERSION} - sudo ln -s /opt/janet/bin/janet /usr/local/bin/janet + wget https://github.com/janet-lang/janet/releases/download/v${VERSION}/janet-v${VERSION}-linux-x64.tar.gz + tar zxvf janet-v${VERSION}-linux-x64.tar.gz + sudo mv janet-v${VERSION}-linux janet + sudo mv janet /opt/janet + sudo rm janet-v${VERSION}-linux-x64.tar.gz git clone --depth=1 https://github.com/janet-lang/jpm.git cd jpm - sudo /opt/janet/bin/janet bootstrap.janet - - cd ~ - sudo rm -rf jpm + sudo janet bootstrap.janet printf "\n\n" - janet -v -} - -function uninstall () { - echo "uninstalling janet" - sudo rm -rf /opt/janet - sudo rm /usr/local/bin/jpm - sudo rm /usr/local/bin/janet + janet --version } if [ "$1" == "install" ]; then diff --git a/scripts/julia.sh b/scripts/julia.sh index 0792310..c9532e6 100755 --- a/scripts/julia.sh +++ b/scripts/julia.sh @@ -1,14 +1,12 @@ #!/usr/bin/env bash -MINOR="1.7" -VERSION="1.7.0" +MINOR="1.6" +VERSION="1.6.3" function install () { echo "installing julia" cd ~ wget https://julialang-s3.julialang.org/bin/linux/x64/${MINOR}/julia-${VERSION}-linux-x86_64.tar.gz - wget https://julialang-s3.julialang.org/bin/checksums/julia-${VERSION}.sha256 - sha256sum -c julia-${VERSION} tar zxvf julia-${VERSION}-linux-x86_64.tar.gz sudo mv julia-${VERSION} julia sudo mv julia /opt/julia diff --git a/scripts/python.sh b/scripts/python.sh index 7c22e26..55f6c18 100755 --- a/scripts/python.sh +++ b/scripts/python.sh @@ -1,12 +1,10 @@ #!/usr/bin/env bash -VERSION="3.10.1" +VERSION="3.10.0" function install () { cd ~ curl -O https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz - echo "91822157a97da16203877400c810d93e" > Python-${VERSION}.tgz.md5 - md5sum -c Python-${VERSION}.tgz.md5 sudo tar -xvzf Python-${VERSION}.tgz cd Python-${VERSION} ./configure \ @@ -22,7 +20,6 @@ function install () { sudo /opt/python/${VERSION}/bin/python3 get-pip.py sudo rm Python-${VERSION}.tgz - sudo rm Python-${VERSION}.tgz.md5 sudo rm -rf Python-${VERSION} sudo rm get-pip.py