summaryrefslogtreecommitdiff
path: root/grc/src/platforms/base
diff options
context:
space:
mode:
Diffstat (limited to 'grc/src/platforms/base')
-rw-r--r--grc/src/platforms/base/Constants.py.in5
-rw-r--r--grc/src/platforms/base/Makefile.am1
2 files changed, 5 insertions, 1 deletions
diff --git a/grc/src/platforms/base/Constants.py.in b/grc/src/platforms/base/Constants.py.in
index 26ba72d97..4ee4278f1 100644
--- a/grc/src/platforms/base/Constants.py.in
+++ b/grc/src/platforms/base/Constants.py.in
@@ -19,7 +19,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
import os
-##The current version of this code
+##The package name.
+PACKAGE = '@PACKAGE@'
+
+##The current version.
VERSION = '@VERSION@'
##Location of external data files.
diff --git a/grc/src/platforms/base/Makefile.am b/grc/src/platforms/base/Makefile.am
index a40d8c5bb..fbfc87e00 100644
--- a/grc/src/platforms/base/Makefile.am
+++ b/grc/src/platforms/base/Makefile.am
@@ -38,6 +38,7 @@ BUILT_SOURCES = Constants.py
Constants.py: Makefile $(srcdir)/Constants.py.in
sed \
+ -e 's|@PACKAGE[@]|$(PACKAGE)|g' \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@datadir[@]|$(grc_base_data_dir)|g' \
$(srcdir)/Constants.py.in > $@