blob: a296f93f51bb89ae40ec90e88596d8b4848df2b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
name=$1
cd $HOME/blastem_win
hg revert -a
hg pull
hg up
rev=`hg summary | sed -E -n 's/^parent: [^:]+:([^ ]+) .*$/\1/p'`
sed -i -E "s/(define BLASTEM_VERSION \"[^-]+)-pre\"/\1-pre-$rev\"/" blastem.c
export OS=Windows
./build_release > /tmp/build_${name}_out.log
. $HOME/remote.params
artifact=$(tail -n 1 /tmp/build_${name}_out.log)
scp -i "$REMOTE_IDENT" "$HOME/.local/share/lxc/$CONTAINER_NAME/rootfs/home/$BUILD_USER/blastem/$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies
|