-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add qarchive version string, add bump_version script
- Loading branch information
Showing
5 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
#ifndef CONFIG_H_QARCHIVE_INCLUDED | ||
#define CONFIG_H_QARCHIVE_INCLUDED | ||
#cmakedefine QARCHIVE_STATIC | ||
|
||
#ifndef QARCHIVE_VERSION_STR | ||
# define QARCHIVE_VERSION_STR "@PROJECT_VERSION@" | ||
#endif | ||
|
||
#ifndef QARCHIVE_VERSION_MAJOR | ||
# define QARCHIVE_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ | ||
#endif | ||
|
||
#ifndef QARCHIVE_VERSION_MINOR | ||
# define QARCHIVE_VERSION_MINOR @PROJECT_VERSION_MINOR@ | ||
#endif | ||
|
||
#ifndef QARCHIVE_VERSION_PATCH | ||
# define QARCHIVE_VERSION_PATCH @PROJECT_VERSION_PATCH@ | ||
#endif | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Bump Version, Simple Script to Bump QArchive Version" | ||
echo "Copyright (c) 2023-Preset, D. Antony J.R <[email protected]>" | ||
echo "" | ||
|
||
if [[ -z "$QARCHIVE_VERSION" ]] then | ||
echo "QARCHIVE_VERSION not set, giving up." | ||
exit -1 | ||
fi | ||
|
||
echo QARCHIVE_VERSION=$QARCHIVE_VERSION | ||
|
||
sed -i 's/QArchive VERSION .*/QArchive VERSION '$QARCHIVE_VERSION'\)/' CMakeLists.txt | ||
sed -i "s/ version: .*/ version: '$QARCHIVE_VERSION',/" meson.build | ||
|
||
cat > /tmp/qarchive.commit.template.txt << EOF | ||
[Release $QARCHIVE_VERSION] QArchive v$QARCHIVE_VERSION release | ||
#Changelog | ||
* Change 1 | ||
* Change 2 | ||
Signed-off-by: Divya Antony J R <[email protected]> | ||
EOF | ||
|
||
git add -A | ||
git status | ||
|
||
read -p "Do you want to commit? press any key to continue..." | ||
|
||
git commit -S -t /tmp/qarchive.commit.template.txt | ||
|
||
rm -rf /tmp/qarchive.commit.template.txt | ||
|
||
echo "Please run 'git push origin master' to release." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters