changeset 5164:6369cbaac215

Dash: make echo, test and [ external commands. This makes LIBRESTRICT=open:stat a whole lot more interesting.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 17 Feb 2009 16:21:01 +0100
parents c36df4781136
children 3baa15448cb6
files gub/specs/dash.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/dash.py	Tue Feb 17 16:20:15 2009 +0100
+++ b/gub/specs/dash.py	Tue Feb 17 16:21:01 2009 +0100
@@ -2,6 +2,12 @@
 
 class Dash__tools (tools.AutoBuild):
     source = 'http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.5.1.tar.gz'
+    def patch (self):
+        tools.AutoBuild.patch (self)
+        self.file_sub ([('testcmd		test [[]', ''),
+                        ('echocmd		echo', '')],
+                       '%(srcdir)s/src/builtins.def.in',
+                       must_succeed=True)
     def configure_command (self):
         return (tools.AutoBuild.configure_command (self)
                 # dash takes --enable-static to mean: --disable-shared