check_unused.sh revision 6265
10139N/A# Search for files in cvs that are not referenced in spec files. 10139N/A# Depending on command line switch, script searches for: 10139N/A# - patches not referenced in any spec file 10139N/A# - ext-sources not referenced in any spec file 10139N/A# - Linux spec files not mentioned in any Solaris spec file. 10754N/A# Display usage if no arguments on command line. 10139N/AUsage: `basename $0` [-patches|-ext-sources|-linux-only] 10139N/A-patches list patches not referenced in any spec file. 10469N/A-ext-sources list ext-sources files not referenced in any spec file 10469N/A-linux-only list Linux spec files not mentioned in any Solaris spec file. 10139N/A# Determine the script directory. 10491N/A# Go to the spec-files directory and ensure other dirs present. 10139N/A echo "ERROR: Expected directory structure not present. Contact gnome-re@sun.com." 10139N/A # Search for '^Patch.*' in Linux, Solaris and extra-specs spec files. 10139N/A # Search '^Source' in all spec files, '^SUNW_Copyright' in Solaris spec 10139N/A # files and then '^%.class' (rclass and iclass) in Solaris spec files. 10139N/A # Search for '^%use.*' in Solaris spec files.