This repository was archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replaces the config.h.mingw file that has been shipped with every release with a generation script that generates it from the VERSION and configure.ac.in files. This helps changing the version on Windows, e.g. for development versions. This has been tested with Cygwin only.
- Loading branch information
Showing
6 changed files
with
26 additions
and
117 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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
#!/bin/bash | ||
|
||
GETTEXT_PACKAGE=$(grep 'GETTEXT_PACKAGE=' configure.ac.in | cut -d= -f2) | ||
PLUGIN_AUTHOR=$(grep 'PLUGIN_AUTHOR' configure.ac.in | cut -d\" -f2) | ||
PLUGIN_ID=$(grep 'PLUGIN_ID' configure.ac.in | cut -d\" -f2) | ||
PLUGIN_STATIC_NAME=$(grep 'PLUGIN_STATIC_NAME' configure.ac.in | cut -d\" -f2) | ||
PLUGIN_WEBSITE=$(grep 'PLUGIN_WEBSITE' configure.ac.in | cut -d\" -f2) | ||
PLUGIN_VERSION=$(cat VERSION) | ||
|
||
|
||
cat << EOF | ||
/* Generated by scripts/gen_mingw_config_h.sh | ||
* from files VERSION and configure.ac.in. | ||
*/ | ||
#define ENABLE_NLS 1 | ||
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" | ||
#define PLUGIN_AUTHOR "$PLUGIN_AUTHOR" | ||
#define PLUGIN_ID "$PLUGIN_ID" | ||
#define PLUGIN_STATIC_NAME "$PLUGIN_STATIC_NAME" | ||
#define PLUGIN_VERSION "$PLUGIN_VERSION" | ||
#define PLUGIN_WEBSITE "$PLUGIN_WEBSITE" | ||
EOF |
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