From 745bbf0ce52c8e124ce0055a17139ea67cb8315c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 29 Jan 2012 20:00:35 +0100
Subject: Fix the make-template.sh script.
---
po/make-template.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/po/make-template.sh b/po/make-template.sh
index d966911..1bfd3df 100755
--- a/po/make-template.sh
+++ b/po/make-template.sh
@@ -12,7 +12,7 @@ PACKAGE=$(sed -n '/^[ \t]*[pP][rR][oO][jJ][eE][cC][tT][ \t]*([ \t]*\([^ \t)]\{1,
../CMakeLists.txt)
# Get the package version from CMakeLists.txt
-EXP_BEG='/^[ \t]*[sS][eE][tT][ \t]*([ \t]*'$PACKAGE'_VERSION_'
+EXP_BEG='/^[ \t]*[sS][eE][tT][ \t]*([ \t]*project_VERSION_'
EXP_END='[ \t]\{1,\}"\{0,1\}\([^)"]\{1,\}\)"\{0,1\}).*/{s//\1/p;q}'
MAJOR=$(sed -n "${EXP_BEG}MAJOR${EXP_END}" ../CMakeLists.txt)
--
cgit v1.2.3-70-g09d2