Browse Source

Add script to update git on Lenny to latest

master
Noah Petherbridge 6 years ago
committed by Noah Petherbridge
parent
commit
e544a5ef3f
  1. 2
      home/.bashrc
  2. 9
      home/bin/lenny-up

2
home/.bashrc

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

9
home/bin/lenny-up

@ -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 /));
}
Loading…
Cancel
Save