[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6234 - in gnuradio/branches/features/deb: debian dtoo
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r6234 - in gnuradio/branches/features/deb: debian dtools/bin |
Date: |
Thu, 30 Aug 2007 15:29:15 -0600 (MDT) |
Author: jcorgan
Date: 2007-08-30 15:29:14 -0600 (Thu, 30 Aug 2007)
New Revision: 6234
Added:
gnuradio/branches/features/deb/debian/gen-install-files.sh
gnuradio/branches/features/deb/debian/libgnuradio-core0-dev.dirs
gnuradio/branches/features/deb/dtools/bin/extract_install_filenames
Modified:
gnuradio/branches/features/deb/debian/control
gnuradio/branches/features/deb/debian/rules
Log:
Created libgnuradio-core0-dev package.
Modified: gnuradio/branches/features/deb/debian/control
===================================================================
--- gnuradio/branches/features/deb/debian/control 2007-08-30 20:29:51 UTC
(rev 6233)
+++ gnuradio/branches/features/deb/debian/control 2007-08-30 21:29:14 UTC
(rev 6234)
@@ -65,6 +65,15 @@
Description: Software Defined Radio
This package contains the core GNU Radio libraries.
+Package: libgnuradio-core0-dev
+Section: libdevel
+Architecture: any
+Depends: libgnuradio-omnithread0-dev, libgnuradio-core0c2a (=
${Source-Version}), libboost-dev
+Description: Software Defined Radio
+ This package contains the core GNU Radio libraries.
+ .
+ This package contains header files needed by developers.
+
Package: gnuradio-doc
Section: doc
Architecture: all
Added: gnuradio/branches/features/deb/debian/gen-install-files.sh
===================================================================
--- gnuradio/branches/features/deb/debian/gen-install-files.sh
(rev 0)
+++ gnuradio/branches/features/deb/debian/gen-install-files.sh 2007-08-30
21:29:14 UTC (rev 6234)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+EXTRACT=dtools/bin/extract_install_filenames
+
+# libgnuradio-core0-dev
+NAME=debian/libgnuradio-core0-dev.install
+rm -f $NAME
+touch $NAME
+$EXTRACT gnuradio-core/src/lib/filter/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/filter/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/general/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/general/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/gengen/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/gengen/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/io/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/io/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/reed-solomon/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/reed-solomon/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/runtime/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/runtime/Makefile swiginclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/swig/Makefile grinclude_HEADERS
>>$NAME
+$EXTRACT gnuradio-core/src/lib/swig/Makefile swiginclude_HEADERS
>>$NAME
Property changes on: gnuradio/branches/features/deb/debian/gen-install-files.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: gnuradio/branches/features/deb/debian/libgnuradio-core0-dev.dirs
===================================================================
--- gnuradio/branches/features/deb/debian/libgnuradio-core0-dev.dirs
(rev 0)
+++ gnuradio/branches/features/deb/debian/libgnuradio-core0-dev.dirs
2007-08-30 21:29:14 UTC (rev 6234)
@@ -0,0 +1,2 @@
+usr/include/gnuradio
+usr/include/gnuradio/swig
Modified: gnuradio/branches/features/deb/debian/rules
===================================================================
--- gnuradio/branches/features/deb/debian/rules 2007-08-30 20:29:51 UTC (rev
6233)
+++ gnuradio/branches/features/deb/debian/rules 2007-08-30 21:29:14 UTC (rev
6234)
@@ -42,6 +42,8 @@
$(MAKE)
$(MAKE) check
+ # Some of these only exist after build
+ debian/gen-install-files.sh
touch $@
update:
Added: gnuradio/branches/features/deb/dtools/bin/extract_install_filenames
===================================================================
--- gnuradio/branches/features/deb/dtools/bin/extract_install_filenames
(rev 0)
+++ gnuradio/branches/features/deb/dtools/bin/extract_install_filenames
2007-08-30 21:29:14 UTC (rev 6234)
@@ -0,0 +1,94 @@
+#!/usr/bin/env python
+
+"""
+Example usage:
+
+ $ extract_install_filenames gnuradio-core/src/lib/swig/Makefile
grgrpython_PYTHON
+
+Produces:
+
+ usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_python.py
+
usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py
+
usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_general.py
+
usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_gengen.py
+
usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_filter.py
+ usr/local/lib64/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_io.py
+
+"""
+
+from optparse import OptionParser
+import re
+import sys
+import tempfile
+import os
+
+def make_makefile_tail(dirname, full_var_name):
+
+ s = '''
+extract_install_filenames:
+ @echo $(%s)
+ @echo $(%s)
+
+''' % (dirname, full_var_name)
+ return s
+
+
+def main():
+ parser = OptionParser(usage="usage: %prog [options] Makefile
AM-variable-name")
+ (options, args) = parser.parse_args()
+ if len(args) != 2:
+ parser.print_help()
+ raise SystemExit
+
+ makefile_name = args[0]
+ makefile = open(makefile_name, 'r')
+ full_var_name = args[1]
+
+ L = re.split('_', full_var_name)
+ prefix = '_'.join(L[:-1])
+ suffix = L[-1]
+
+ #print "prefix= ", prefix
+ #print "suffix= ", suffix
+
+ if suffix.upper() != suffix:
+ raise SystemExit, "AM-variable-name is malformed. Expected something
like grgrpython_PYTHON"
+
+ dirname = prefix + "dir"
+
+ tail = make_makefile_tail(dirname, full_var_name)
+
+ tmp_makefile = tempfile.NamedTemporaryFile()
+ #print "tmp_makefile =", tmp_makefile
+ tmp_name = tmp_makefile.name
+ #print "tmp_name =", tmp_name
+ s = makefile.read()
+ tmp_makefile.write(s)
+ tmp_makefile.write(tail)
+ tmp_makefile.flush()
+
+ (head, tail) = os.path.split(makefile_name)
+ if head:
+ # cd to directory that contained the original Makefile
+ cmd = 'cd %s; make -f %s extract_install_filenames' % (head, tmp_name)
+ else:
+ cmd = 'make -f %s extract_install_filenames' % (tmp_name,)
+
+ #print "cmd =", cmd
+ make = os.popen(cmd, 'r')
+ target_dirname = make.readline().rstrip()
+ target_files = make.readline().rstrip()
+ if target_dirname.startswith('/'):
+ target_dirname = target_dirname[1:]
+
+ #print "target_dirname =", target_dirname
+ #print "target_files =", target_files
+
+ for f in target_files.split():
+ sys.stdout.write(os.path.join(target_dirname, f) + '\n')
+
+if __name__ == '__main__':
+ main()
+
+
+
Property changes on:
gnuradio/branches/features/deb/dtools/bin/extract_install_filenames
___________________________________________________________________
Name: svn:executable
+ *
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6234 - in gnuradio/branches/features/deb: debian dtools/bin,
jcorgan <=