... | ... | @@ -145,4 +145,35 @@ This document was originally located in an `APKBUILD` file; please maintain the |
|
|
# has been updated and you wish to send it to users, create
|
|
|
# another tag and update the APKBUILD accordingly.
|
|
|
#
|
|
|
```
|
|
|
|
|
|
In code form:
|
|
|
|
|
|
```sh
|
|
|
# do this in adelie/spack.git
|
|
|
# rev. 20231101
|
|
|
|
|
|
# configuration
|
|
|
upstream=https://github.com/spack/spack.git;
|
|
|
upbranch=develop;
|
|
|
mybranch=adelie;
|
|
|
patchrev=1; # EXAMPLE ONLY
|
|
|
|
|
|
# get latest upstream code
|
|
|
git checkout ${upbranch};
|
|
|
git pull ${upstream} ${upbranch};
|
|
|
git fetch --tags ${upstream};
|
|
|
git push origin ${upbranch} # not --all because don't care about tags on the server
|
|
|
|
|
|
# rebase patches
|
|
|
git checkout ${mybranch};
|
|
|
git rebase ${upbranch}; # check this worked correctly!
|
|
|
git push origin ${mybranch} --force;
|
|
|
|
|
|
# create release branch and tag
|
|
|
last_tag=$(git describe --tags $(git rev-list --tags --max-count=1));
|
|
|
git branch ${mybranch}-${last_tag};
|
|
|
git tag ${mybranch}-${last_tag}_p${patchrev} ${mybranch}-${last_tag};
|
|
|
git push origin ${mybranch}-${last_tag};
|
|
|
git push origin ${mybranch}-${last_tag}_p${patchrev};
|
|
|
``` |
|
|
\ No newline at end of file |