mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 20:53:01 +00:00
21 lines
663 B
Bash
Executable file
21 lines
663 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
GITREV="`git show -s --format='%h'`"
|
|
REV_NAME="citra-unified-source-${GITDATE}-${GITREV}"
|
|
|
|
COMPAT_LIST='dist/compatibility_list/compatibility_list.json'
|
|
|
|
mkdir artifacts
|
|
|
|
pip3 install git-archive-all
|
|
touch "${COMPAT_LIST}"
|
|
git describe --abbrev=0 --always HEAD > GIT-COMMIT
|
|
git describe --tags HEAD > GIT-TAG || echo 'unknown' > GIT-TAG
|
|
git archive-all --include "${COMPAT_LIST}" --include GIT-COMMIT --include GIT-TAG --force-submodules artifacts/"${REV_NAME}.tar"
|
|
|
|
cd artifacts/
|
|
xz -T0 -9 "${REV_NAME}.tar"
|
|
sha256sum "${REV_NAME}.tar.xz" > "${REV_NAME}.tar.xz.sha256sum"
|
|
cd ..
|