Skip to content

Commit

Permalink
Fix incorrectly generated POEDIT_VERSION_WIN
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed May 27, 2015
1 parent 4b0dbd4 commit a6579fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/chversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ replace_ver()

VER_FULL=$1
VER_SHORT="`echo $VER_FULL | sed -e 's/\(pre\|beta\|rc\)[0-9]//g'`"
VER_WIN="`echo $VER_SHORT | tr '.' ','`,0"
VER_WIN="`echo $VER_SHORT | tr '.' ','`"
if [ `echo $VER_WIN | awk 'BEGIN{FS=","} {print NF}'` = 2 ] ; then
VER_WIN="$VER_WIN,0"
fi

replace_ver win32/poedit.iss \
'\(#define VERSION_FULL *"\).*\("\)' "\1$VER_FULL\2"
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
#define _VERSION_H_

#define POEDIT_VERSION "1.8.1"
#define POEDIT_VERSION_WIN 1,8,1,0
#define POEDIT_VERSION_WIN 1,8,1

#endif // _VERSION_H_

0 comments on commit a6579fc

Please sign in to comment.