Mercurial > repos > blastem
annotate build_nightly @ 1420:975b5b7eaa77
Fix DMA from byte-wide SRAM
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 26 Jun 2017 21:13:17 -0700 |
parents | 8e3adc6264d3 |
children | 866577a220e6 |
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 |
1252
8e3adc6264d3
Don't depend on USER being set in build_nightly as it does not seem to work when build job is run from cron
Michael Pavone <pavone@retrodev.com>
parents:
1240
diff
changeset
|
6 needsu=$2 |
8e3adc6264d3
Don't depend on USER being set in build_nightly as it does not seem to work when build job is run from cron
Michael Pavone <pavone@retrodev.com>
parents:
1240
diff
changeset
|
7 if [ "$needsu" = needsu ]; then |
8e3adc6264d3
Don't depend on USER being set in build_nightly as it does not seem to work when build job is run from cron
Michael Pavone <pavone@retrodev.com>
parents:
1240
diff
changeset
|
8 su $build_user -c "$0 $1"; |
1233
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 exit |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
10 fi |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
12 cd /home/$build_user/blastem |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
13 hg revert -a |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
14 hg pull |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
15 hg up |
2e58b3da1ec1
Added untested script for part of a nightly build process
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
16 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
|
17 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
|
18 ./build_release |