aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2009-10-04 03:35:02 +0200
committerGravatar Thomas Capricelli <orzel@freehackers.org>2009-10-04 03:35:02 +0200
commit5f320884437b15ad53a3085bd7d5572ea0624694 (patch)
tree0e857a22b7ec80120382e2832d047a6215a8096c /scripts
parentd040c9fc9e174dfd2b3d2b0171347b03a86f689a (diff)
use provided $USER if available, let the caller do the update (safer)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/eigen_gen_docs11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/eigen_gen_docs b/scripts/eigen_gen_docs
index 3cdacc1a8..17f573673 100644
--- a/scripts/eigen_gen_docs
+++ b/scripts/eigen_gen_docs
@@ -1,18 +1,17 @@
#!/bin/sh
# configuration
-USER='orzel'
+# You should call this script with USER set as you want, else some default
+# will be used
+USER=${USER:-'orzel'}
-# step 1 : update
-hg pull -u || (echo "update failed"; exit 1)
-
-# step 2 : build
+# step 1 : build
# todo if 'build is not there, create one:
#mkdir build
(cd build && cmake .. && make -j3 doc) || (echo "make failed"; exit 1)
#todo: n+1 where n = number of cpus
-#step 3 : upload
+#step 2 : upload
BRANCH=`hg branch`
if [ $BRANCH == "default" ]
then