Skip to content

Latest commit

 

History

History
89 lines (59 loc) · 2.83 KB

diffm.pod

File metadata and controls

89 lines (59 loc) · 2.83 KB

NAME

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.

SYNOPSIS

diffm -f <file1> <file2> [-o <dir-path>]

DESCRIPTION

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.

Options

-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.

NOTES

diffm is used as part of the suite of programs that process Freshmeat archives.

EXAMPLES

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

AUTHOR

Mark Donohoe for the Hewlett-Packard Company

SEE ALSO

get-projects(1), mktop1k(1), Readme and wiki.