Use basename of objxref.pl not whole path in generated header.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 6 Apr 2009 16:16:23 +0000 (16:16 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 6 Apr 2009 16:16:23 +0000 (16:16 +0000)
crypto/objects/obj_xref.h
crypto/objects/objxref.pl

index 7836f01d95ccacbc6a51b66abf65fdda8abef2fd..d5b9b8e19830c30e6fbf87cc972a66c77beef0c1 100644 (file)
@@ -1,4 +1,4 @@
-/* AUTOGENERATED BY crypto/objects/objxref.pl, DO NOT EDIT */
+/* AUTOGENERATED BY objxref.pl, DO NOT EDIT */
 
 typedef struct
        {
index 3fa584036e1e13cb430c742ec08620a4ba1c786f..731d3ae22c2745928648f0602ba2732c292a9b7e 100644 (file)
@@ -54,10 +54,13 @@ my @srt2 = sort
 
        return $ap2 - $bp2;
        } @xrkeys;
-       
+
+my $pname = $0;
+
+$pname =~ s|^.[^/]/||;
 
 print <<EOF;
-/* AUTOGENERATED BY $0, DO NOT EDIT */
+/* AUTOGENERATED BY $pname, DO NOT EDIT */
 
 typedef struct
        {