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