summaryrefslogtreecommitdiff
path: root/grc/src/platforms/base
diff options
context:
space:
mode:
authorjblum2008-09-18 18:52:42 +0000
committerjblum2008-09-18 18:52:42 +0000
commitaca0061a7a7b4923cf7a71e820f68d6f838cc182 (patch)
treebed30d83c7cc6299e83975b3c46afa2b4d04d549 /grc/src/platforms/base
parent7fa03f371fb3244a5d6a8cb3cd510fef5f97cdfe (diff)
downloadgnuradio-aca0061a7a7b4923cf7a71e820f68d6f838cc182.tar.gz
gnuradio-aca0061a7a7b4923cf7a71e820f68d6f838cc182.tar.bz2
gnuradio-aca0061a7a7b4923cf7a71e820f68d6f838cc182.zip
making use of PACKAGE
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9603 221aa14e-8319-0410-a670-987f0aec2ac5
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 > $@