Whamcloud - gitweb
e2fsck: allow to fix some superblock corruptions
[tools/e2fsprogs.git] / lib / et / et_h.awk
index 73caffc..8337121 100644 (file)
@@ -1,4 +1,7 @@
 BEGIN { 
+if ( length(outfn) == 0) {
+       outfn = outfile
+}
 char_shift=64
 ## "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
 c2n["A"]=1
@@ -123,7 +126,7 @@ c2n["_"]=63
        curr_high = tab_base_high
        curr_sign = tab_base_sign
        print "/*" > outfile
-       print " * " outfile ":" > outfile
+       print " * " outfn ":" > outfile
        print " * This file is automatically generated; please do not edit it." > outfile
        print " */" > outfile
        print "" > outfile