]> gitweb.factorcode.org Git - factor.git/commitdiff
fix bug in tools.scaffold
authorDoug Coleman <erg@jobim.local>
Thu, 30 Apr 2009 00:41:22 +0000 (19:41 -0500)
committerDoug Coleman <erg@jobim.local>
Thu, 30 Apr 2009 00:41:22 +0000 (19:41 -0500)
basis/tools/scaffold/scaffold.factor

index 63dc951d60a612510f981d78df90b425fe3e02a3..5c8b8684836900c925609b5b3bbf65908c7cf8b3 100755 (executable)
@@ -106,15 +106,14 @@ M: bad-developer-name summary
 
 : scaffold-authors ( vocab-root vocab -- )
     developer-name get [
-        dup string? [ bad-developer-name ] unless
         "authors.txt" vocab-root/vocab/file>path scaffolding? [
-            utf8 set-file-contents
+            developer-name get swap utf8 set-file-contents
         ] [
-            2drop
+            drop
         ] if
     ] [
         2drop
-    ] if* ;
+    ] if ;
 
 : lookup-type ( string -- object/string ? )
     "new" ?head drop [ { [ CHAR: ' = ] [ digit? ] } 1|| ] trim-tail