projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
388a927
)
update functions gethgsnap and gethgclone in /etc/skel/.zshrc
0.1-26
author
Michael Prokop
<mika@grml.org>
Wed, 25 Oct 2006 22:51:08 +0000
(
00:51
+0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 25 Oct 2006 22:51:08 +0000
(
00:51
+0200)
etc/skel/.zshrc
patch
|
blob
|
history
diff --git
a/etc/skel/.zshrc
b/etc/skel/.zshrc
index
2455545
..
a1f5423
100644
(file)
--- a/
etc/skel/.zshrc
+++ b/
etc/skel/.zshrc
@@
-3,7
+3,7
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change:
Son Okt 22 21:25:17
CEST 2006 [mika]
+# Latest change:
Don Okt 26 00:50:18
CEST 2006 [mika]
################################################################################
# source ~/.zshrc.global {{{
################################################################################
# source ~/.zshrc.global {{{
@@
-836,21
+836,22
@@
cd mercurial-tree
echo "Running hg pull for retreiving latest version..."
hg pull
cd mercurial-tree
echo "Running hg pull for retreiving latest version..."
hg pull
- echo "Finished update. Building
tree now...
"
+ echo "Finished update. Building
mercurial
"
make local
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
else
make local
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
else
+ echo "Downloading mercurial via hg"
hg clone http://selenic.com/repo/hg mercurial-tree
cd mercurial-tree
hg clone http://selenic.com/repo/hg mercurial-tree
cd mercurial-tree
+ echo "Building mercurial"
make local
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
make local
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
- # echo "Setting \$PYTHONPATH to PYTHONPATH=\${HOME}/lib/python,"
echo "make sure you set it permanent via ~/.zshrc if you plan to use it permanently."
echo "make sure you set it permanent via ~/.zshrc if you plan to use it permanently."
+ # echo "Setting \$PYTHONPATH to PYTHONPATH=\${HOME}/lib/python,"
# export PYTHONPATH=${HOME}/lib/python
fi
# export PYTHONPATH=${HOME}/lib/python
fi
- setopt LOCAL_OPTIONS
}
fi # end of check whether we have the 'hg'-executable
}
fi # end of check whether we have the 'hg'-executable
@@
-859,20
+860,23
@@
gethgsnap() {
setopt local_options
setopt errreturn
gethgsnap() {
setopt local_options
setopt errreturn
- echo "Downloading mercurial snapshot"
- wget http://www.selenic.com/mercurial/mercurial-snapshot.tar.gz
+ if [ -f mercurial-snapshot.tar.gz ] ; then
+ echo "mercurial-snapshot.tar.gz exists already, skipping download."
+ else
+ echo "Downloading mercurial snapshot"
+ wget http://www.selenic.com/mercurial/mercurial-snapshot.tar.gz
+ fi
+ echo "Unpacking mercurial-snapshot.tar.gz"
tar zxf mercurial-snapshot.tar.gz
cd mercurial-snapshot/
tar zxf mercurial-snapshot.tar.gz
cd mercurial-snapshot/
+ echo "Installing required build-dependencies"
$SUDO apt-get update
$SUDO apt-get install python2.4-dev
$SUDO apt-get update
$SUDO apt-get install python2.4-dev
+ echo "Building mercurial"
make local
make local
- # make install-home-bin
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
echo "Setting \$PATH to $PWD:\$PATH..."
export PATH="$PWD:$PATH"
- # echo "Setting \$PYTHONPATH to PYTHONPATH=\${HOME}/lib/python,"
- # export PYTHONPATH=${HOME}/lib/python
echo "make sure you set it permanent via ~/.zshrc if you plan to use it permanently."
echo "make sure you set it permanent via ~/.zshrc if you plan to use it permanently."
- # echo "Notice: make sure \$HOME/bin is inside \$PATH!"
}
# }}}
}
# }}}