mirror of
https://github.com/mborgerson/xemu.git
synced 2026-02-04 16:45:44 +00:00
ui: Drop xemu branch tracking
This commit is contained in:
committed by
mborgerson
parent
3334a76f73
commit
e409f7afd9
@ -89,8 +89,7 @@ for sp in $subprojects; do
|
||||
done
|
||||
|
||||
git rev-parse HEAD 2>/dev/null | tr -d '\n' > XEMU_COMMIT
|
||||
git symbolic-ref --short HEAD > XEMU_BRANCH
|
||||
git describe --tags --match 'v*' | cut -c 2- | tr -d '\n' > XEMU_VERSION
|
||||
tar -r --file "$tar_file" XEMU_COMMIT XEMU_BRANCH XEMU_VERSION
|
||||
tar -r --file "$tar_file" XEMU_COMMIT XEMU_VERSION
|
||||
|
||||
exit 0
|
||||
|
||||
@ -11,13 +11,6 @@ XEMU_COMMIT=$( \
|
||||
elif test -e XEMU_COMMIT; then \
|
||||
cat XEMU_COMMIT; \
|
||||
fi)
|
||||
XEMU_BRANCH=$( \
|
||||
cd "$dir"; \
|
||||
if test -e .git; then \
|
||||
git symbolic-ref --short HEAD || echo $XEMU_COMMIT; \
|
||||
elif test -e XEMU_BRANCH; then \
|
||||
cat XEMU_BRANCH; \
|
||||
fi)
|
||||
XEMU_VERSION=$( \
|
||||
cd "$dir"; \
|
||||
if test -e .git; then \
|
||||
@ -49,7 +42,6 @@ cat <<EOF
|
||||
#define XEMU_VERSION_MINOR $XEMU_VERSION_MINOR
|
||||
#define XEMU_VERSION_PATCH $XEMU_VERSION_PATCH
|
||||
#define XEMU_VERSION_COMMIT $XEMU_VERSION_COMMIT
|
||||
#define XEMU_BRANCH "$XEMU_BRANCH"
|
||||
#define XEMU_COMMIT "$XEMU_COMMIT"
|
||||
#define XEMU_DATE "$XEMU_DATE"
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user