install-src.pl

Similar to install-dir.pl, this script installs the contents of a directory tree to a specified location. It is, however, more selective in what it installs. Only source files of case-insensitive recognized types (.txt, .c, .h, .cxx, .cpp, makefiles, Makefile.in files, and so on) are copied from the source to the destination. Any CVS directories are not copied over. The options for this script are as follows:

install-src.pl [{-i source directory} | {-o destination directory} | [-u user name] | [-g group name] | [-m mode] | [-e extension list] | [-l]]

In addition to the hard-coded list of extensions, users can provide their own extensions using -e <extension list> where <extension list> is a comma-separated string of extensions of the form .ext. Of course, if the extension list gets long enough, it might be worthwhile to consider using install-dir.pl instead.

Note

With time and changing requirements in individual modules, the scripts install-src.pl and install-dir.pl have grown closer and closer to each other in their functionality. While they do share code through the InstallOps Perl module, there is some duplication. At this point, the only real difference between the two is that install-src.pl has a preset list of recognized extensions. This list could be passed to install-dir.pl, or install-dir.pl could be extended to enable this preset list in addition to anything passed in with -e.