summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-10-28 19:52:53 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-10-28 19:52:53 (GMT)
commit4a479bbb16a44d025ba9fbe7208ec39508e08e5f (patch)
tree727863a977cde44b838d09381bc6044ad90a0fb9
parentf0d20a493481b28def2a42903cd4e1a24afbc82b (diff)
parent420e9d7c491e431cf531dcec98bc2ff8b7166936 (diff)
downloadlinhes_dev-4a479bbb16a44d025ba9fbe7208ec39508e08e5f.zip
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-dev.git
-rwxr-xr-xsetup_env.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/setup_env.sh b/setup_env.sh
index ace578d..38083b6 100755
--- a/setup_env.sh
+++ b/setup_env.sh
@@ -33,19 +33,34 @@ fi
}
+function static-pacman {
+ echo "downloading pacman to tmp"
+ cd /tmp
+ wget http://www.knoppmyth.net/repo/$ARCH/pacman-static.tgz
+ status=$?
+ if [ ! $status = 0 ]
+ then
+ echo "couldn't download pacman static"
+ exit 1
+ fi
+ tar -zxvf pacman-static.tgz
+ export PATH=$PATH:/tmp/pacman.static/run
+ cd -
+}
+
function pacman_check {
which pacman
status=$?
if [ ! $status = 0 ]
then
- echo "Can not find pacman in the path, please install pacman"
- exit 1
- fi
+ echo "Can not find pacman in the path."
+ echo "Trying to use static version"
+ static-pacman
+fi
}
-
#-----------------------------------------------
arg_check $1 $2
pacman_check