Description: Rename rconsole to rfoo-rconsole
 This is done in setup.py
 .
 rfoo (1.3.0-2) unstable; urgency=low
 .
   * Change name of script (Closes: #664993)
     - rconsole -> rfoo-rconsole (due to conflicts with remote-tty)
Author: Jerome Kieffer <jerome.kieffer@esrf.fr>
Bug-Debian: http://bugs.debian.org/664993

---

Bug-Debian: http://bugs.debian.org/664993
Last-Update: 2012-03-25

--- rfoo-1.3.0.orig/setup.py
+++ rfoo-1.3.0/setup.py
@@ -33,7 +33,7 @@
 """
 
 
-import sys
+import sys,os
 
 from distutils.core import setup
 from distutils.extension import Extension
@@ -68,6 +68,12 @@ and install with:
 ===========================================================\n""")
     sys.exit(1)
 
+# Ensure rconsole is copied to rfoo-reconsole
+packgdir = os.path.dirname(os.path.abspath(__file__))
+rconsole = os.path.join(packgdir,"scripts","rconsole")
+rfoorcon = os.path.join(packgdir,"scripts","rfoo-rconsole")
+if not os.path.isfile(rfoorcon) and os.path.isfile(rconsole):
+   os.link(rconsole,rfoorcon)
 
 ext_modules = [Extension("rfoo.marsh", ["rfoo/marsh.pyx"])]
 
@@ -81,7 +87,7 @@ setup(
     url = 'http://www.winpdb.org/',
     license = 'BSD',
     packages = ['rfoo', 'rfoo.utils'],
-    scripts = ['scripts/rconsole'],
+    scripts = ['scripts/rfoo-rconsole'],
     cmdclass = {'build_ext': build_ext},
     ext_modules = ext_modules
 )
