Mercurial > repos > blastem
annotate build_nightly @ 2386:9f178feb3cb0
Prefix most hex-formatted values output by debugger with $ for consistency with number literal parsing
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 Nov 2023 21:35:14 -0800 |
parents | 866577a220e6 |
children |
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 |
2333
866577a220e6
Fix linux nightly build hopefully
Michael Pavone <pavone@retrodev.com>
parents:
1252
diff
changeset
|
8 su -l $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 |