Last active
November 28, 2018 15:27
-
-
Save gschizas/3dbc1aef1b07a2f23b945245691d646c to your computer and use it in GitHub Desktop.
Build and install latest version of nano text editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -o errexit | |
set -o nounset | |
ver=$(git ls-remote --tags https://git.savannah.gnu.org/git/nano.git/ | grep '[0-9]$' | tail -1 | cut -d '/' -f 3) | |
ver2=$(echo $ver|cut -c2-) | |
ver3=$(echo $ver|cut -c2-2) | |
curl -O https://www.nano-editor.org/dist/v$ver3/nano-$ver2.tar.gz | |
tar xzf nano-$ver2.tar.gz | |
cd nano-$ver2 | |
./configure | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment