forked from github/server
make previews always build from master
This commit is contained in:
parent
dea20e94bd
commit
e9ccc24895
|
@ -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 && \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue