Mercurial > repos > blastem
annotate build_nightly @ 1245:42fb3ee1e92c
Fix direct usage of read rather than GDB_READ in gdb_remote.c
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Feb 2017 23:20:11 -0800 |
parents | c63516b6824a |
children | 8e3adc6264d3 |
rev | line source |
---|---|
1233
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 #!/bin/sh |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 |
1240
c63516b6824a
Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
1235
diff
changeset
|
3 set -e |
c63516b6824a
Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
1235
diff
changeset
|
4 |
1233
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 build_user=$1 |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 if [ $USER != $build_user ]; then |
1234
cb26037901fd
Small fix to build_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1233
diff
changeset
|
7 su $build_user -c "$0 $@"; |
1233
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 exit |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 fi |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
10 |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 cd /home/$build_user/blastem |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
12 hg revert -a |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
13 hg pull |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
14 hg up |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
15 rev=`hg summary | sed -E -n 's/^parent: [^:]+:([^ ]+) .*$/\1/p'` |
1235
1fee3c14e607
Small fix to build_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1234
diff
changeset
|
16 sed -i -E "s/(define BLASTEM_VERSION \"[^-]+)-pre\"/\1-pre-$rev\"/" blastem.c |
1233
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
17 ./build_release |