Skip to content
Snippets Groups Projects
Commit 5f320884 authored by Thomas Capricelli's avatar Thomas Capricelli
Browse files

use provided $USER if available, let the caller do the update (safer)

parent d040c9fc
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# configuration # 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 # step 1 : build
hg pull -u || (echo "update failed"; exit 1)
# step 2 : build
# todo if 'build is not there, create one: # todo if 'build is not there, create one:
#mkdir build #mkdir build
(cd build && cmake .. && make -j3 doc) || (echo "make failed"; exit 1) (cd build && cmake .. && make -j3 doc) || (echo "make failed"; exit 1)
#todo: n+1 where n = number of cpus #todo: n+1 where n = number of cpus
#step 3 : upload #step 2 : upload
BRANCH=`hg branch` BRANCH=`hg branch`
if [ $BRANCH == "default" ] if [ $BRANCH == "default" ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment