Rewrite make_h_tree.pl in shell script
authorAndrew Deason <adeason@sinenomine.net>
Fri, 24 Feb 2012 00:28:21 +0000 (18:28 -0600)
committerDerrick Brashear <shadow@dementix.org>
Fri, 24 Feb 2012 12:26:10 +0000 (04:26 -0800)
commitfb03b1380f82a6bdc8a78ad92069da38b4e98c26
treeb57598f8ec1ff1afaac49adae01fad149fc8ebdf
parent46e85dd4682a3273e15bbf96c4d5492087555cab
Rewrite make_h_tree.pl in shell script

The current usage of make_h_tree.pl adds a build requirement of
/usr/bin/perl that we did not have prior to commit
1d6593e952ce82c778b1cd6e40c6e22ec756daf1. Do the same thing in a
bourne shell script instead, so we don't need perl.

Note that this is not as generalized as make_h_tree.pl, but it doesn't
need to be. Specifically, this does not strip a leading ../ from found
include directives (nothing in the tree that includes h/* files uses
this), and header filenames containing whitespace almost certainly do
not work correctly.

The h => sys mapping is also much more hardcoded, but that's all we
were using this for anyway.

Change-Id: If07888abfdb9e8ec822b33abed0bf744b7210a52
Reviewed-on: http://gerrit.openafs.org/6790
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/libuafs/Makefile.common.in
src/libuafs/make_h_tree [new file with mode: 0755]
src/libuafs/make_h_tree.pl [deleted file]