make previews always build from master

This commit is contained in:
Enno Rehling 2014-08-22 07:44:52 +02:00
parent dea20e94bd
commit e9ccc24895
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
s/preview build s/preview build master
s/preview version s/preview version
for game in 2 3 4 ; do for game in 2 3 4 ; do
s/preview -g $game run && \ s/preview -g $game run && \

View File

@ -23,6 +23,7 @@ function build() {
assert_dir $SOURCE assert_dir $SOURCE
cd $SOURCE cd $SOURCE
git pull || abort "failed to update source. do you have local changes?" git pull || abort "failed to update source. do you have local changes?"
[ -z $1 ] || git checkout $1
s/build || abort "build failed." s/build || abort "build failed."
} }
@ -128,7 +129,8 @@ case "$1" in
version version
;; ;;
"build") "build")
build shift
build $*
;; ;;
"setup") "setup")
setup setup