Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Mingw: Fix compilation of release package
Browse files Browse the repository at this point in the history
  • Loading branch information
kgraefe committed Feb 1, 2016
1 parent 429fba6 commit 86718d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ build: config.h
$(MAKE) -C $(PLUGIN_SRC) -f Makefile.mingw
$(MAKE) -C $(PLUGIN_PO) -f Makefile.mingw

config.h: VERSION configure.ac.in scripts/gen_mingw_config_h.sh
config.h: VERSION scripts/gen_mingw_config_h.sh
./scripts/gen_mingw_config_h.sh > config.h

dist: $(PLUGIN_WIN32_ZIP)
Expand Down
18 changes: 12 additions & 6 deletions scripts/gen_mingw_config_h.sh
Original file line number Diff line number Diff line change
@@ -1,16 +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)
if [ -f configure.ac.in ]; then
CONFIGURE_AC=configure.ac.in
else
CONFIGURE_AC=configure.ac
fi

GETTEXT_PACKAGE=$(grep 'GETTEXT_PACKAGE=' $CONFIGURE_AC | cut -d= -f2)
PLUGIN_AUTHOR=$(grep 'PLUGIN_AUTHOR' $CONFIGURE_AC | cut -d\" -f2)
PLUGIN_ID=$(grep 'PLUGIN_ID' $CONFIGURE_AC | cut -d\" -f2)
PLUGIN_STATIC_NAME=$(grep 'PLUGIN_STATIC_NAME' $CONFIGURE_AC | cut -d\" -f2)
PLUGIN_WEBSITE=$(grep 'PLUGIN_WEBSITE' $CONFIGURE_AC | cut -d\" -f2)
PLUGIN_VERSION=$(cat VERSION)


cat << EOF
/* Generated by scripts/gen_mingw_config_h.sh
* from files VERSION and configure.ac.in.
* from files VERSION and $CONFIGURE_AC.
*/
#define ENABLE_NLS 1
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
Expand Down

0 comments on commit 86718d4

Please sign in to comment.