[jhbuild] check for obsolete ~/bin/jhbuild and move it out of the way if necessary
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] check for obsolete ~/bin/jhbuild and move it out of the way if necessary
- Date: Sat, 23 May 2009 11:13:28 -0400 (EDT)
commit b2ca913db3f7c763ae428c384efb9f50a636b74d
Author: Frédéric Péters <fpeters 0d be>
Date: Sat May 23 17:12:05 2009 +0200
check for obsolete ~/bin/jhbuild and move it out of the way if necessary
---
Makefile.plain | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile.plain b/Makefile.plain
index 9665cad..43310b5 100644
--- a/Makefile.plain
+++ b/Makefile.plain
@@ -37,4 +37,9 @@ install: install-check
@[ -f $(HOME)/.jhbuildrc ]||echo "Don't forget to create ~/.jhbuildrc"
install -m755 install-check $(bindir)/install-check
+ @if [ -e "$(HOME)/bin/jhbuild" ] && [ ! $(bindir) -ef $(HOME)/bin ]; then \
+ mv "$(HOME)/bin/jhbuild" "$(HOME)/bin/jhbuild.old" ; \
+ ln -s $(bindir)/jhbuild "$(HOME)/bin/jhbuild" ; \
+ fi
+
.PHONY: all update install
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]