1
0

Add script to update git on Lenny to latest

This commit is contained in:
Noah 2016-02-26 15:04:29 -08:00 committed by Noah Petherbridge
parent b63812a317
commit e544a5ef3f
2 changed files with 11 additions and 0 deletions

View File

@ -116,6 +116,8 @@ function title {
function git { function git {
if [ -x "/usr/local/bin/git" ]; then if [ -x "/usr/local/bin/git" ]; then
/usr/local/bin/git $@ /usr/local/bin/git $@
elif [ -x "/opt/git/bin/git" ]; then
/opt/git/bin/git $@
elif [ -x "/usr/bin/git" ]; then elif [ -x "/usr/bin/git" ]; then
/usr/bin/git $@ /usr/bin/git $@
else else

9
home/bin/lenny-up Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/perl
# Get some updated software on Debian Lenny, especially `git`.
if (!-d "/opt/git") {
print "Fetching latest git\n";
system(qw(wget --no-check-certificate https://rpm.kirsle.net/static-bin/git/lenny/latest.tar.gz -O git-lenny.tar.gz));
system(qw(sudo tar -xzvf git-lenny.tar.gz -C /));
}