#!/usr/bin/perl # This file can find requirements of html and jhtml files (cgi, gif, # java dependencies). It is a bit of a hack but it turns out to work # well. We track only dependencies between Relative URLs, absolute # URL's are assumed to be extenernal to the RPM system. We do not # parse the HTML but look through the set of strings (text surrounded # by quotes) for something which looks like a reference. This avoids # writing a full HTML parsers and tends to work really well. In this # manner we can track dependencies for: href, src, action and other # HTML tags which have not been invented yet. # The reference: # # href="http://www.perl.org/images/arrow.gif" # # does not create a dependency but the reference # # href="images/arrow.gif" # # will create a dependency. # Additionally this program will find the requirements for sun jhtml # (html with embedded java) since jhtml is deprecated so is this part # of the code. # These references create dependencies: #