diffm: find the differences between two Freshmeat Rdf format files and record the files that have differences and save the associated XML for that project in a file.
diffm returns the number of differences found or 0 for no differences.
diffm -f <file1> <file2> [-o <dir-path>]
diffm extracts the project short name and the latest release version from a Freshmeat rdf format XML file and stores them in arrays. The arrays are sorted and then diff'ed. Any differences in the latest release version cause that project to be added to the list of projects that need updating. The associated xml entries with that project are also added to the xml file that will be used by get-projects to retrieve them from the net.
diffm always creates two output files. FM-projects2update.yyyy-mm-dd and Update.fm.rdf.yyyy-mm-dd. The first file is a list of the files and the new version that should be updated. The second file is a XML file that can be used by get-projects to obtain the new projects from Freshmeat. The year and date used are the current date when the program is run.
diffm returns the number of differences found or 0 for no differences.
- -h
-
The standard help flag. Print the usage string.
- -f file1 file2
-
Fully qualified path to the two files that should be compared.
- -o out-dir
-
The optional output location path. If not specified, the current working directory will be used.
diffm is used as part of the suite of programs that process Freshmeat archives.
Find the differences between Tuesday and Wed. Freshmeat top 1000 projects
diffm -f ./Tue.fmrdf ./Wed.fmrdf -o /myhome/Freshmeat/Diffs/
Find the same differences, but put the output files in the current directory.
diffm -f ./Tue.fmrdf ./Wed.fmrdf
Mark Donohoe for the Hewlett-Packard Company
get-projects(1), mktop1k(1), Readme and wiki.