Grace, See below for my comments ...
Paul Grace Tang wrote: > > I am porting 'dwdiff', a diff program that operates at the word level, > to OpenSolaris. > > Can you please review my code? The webrev is at: > > http://cr.opensolaris.org/~grace/dwdiff/ === Start of Comments ==== 1. usr/src/cmd/dwdiff/METADATA Make the NAME: field more descriptive. 2. usr/src/cmd/dwdiff/Makefile.sfw Extract the version number on 'VER =' from the MEATADATA Add "env - " before 'configure' and 'make' so it does not pick up random environment vars. Explicitly define 'configure --prefix=... " using CONFIGURE_OPTIONS from Makefile.master, eg. something like .... CONFIGURE_OPTIONS += --without-unicode .... .... ./configure $(CONFIGURE_OPTIONS) Maybe explicitly define the compile to use, CC=... Maybe use $(CCSMAKE) instead of 'make' 3. CDDL HEADER and file tops (all files) Check that they conform to those in ... "http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/prototypes/" 4. usr/src/pkgdefs/SUNWdwdiff/copyright Do you need the Sun disclaimer? as in ... "http://src.opensolaris.org/source/xref/sfw/usr/src/pkgdefs/SUNWmeld/copyright" 5. usr/src/pkgdefs/SUNWdwdiff/depend Have you checked the pkg dependencies using the dependency checker script? SUNWlibmsr, is this a dependency of your pkg? 6. usr/src/pkgdefs/SUNWdwdiff/pkginfo.tmpl Added version at the end of the DESC= line, eg. ... DESC="................. (1.5.2)" 7. usr/src/pkgdefs/SUNWdwdiff/prototype_i386 & usr/src/pkgdefs/SUNWdwdiff/prototype_sparc To be consistent with other pkgs add comment line .. # SUNWdwdiff as in ... "http://src.opensolaris.org/source/xref/sfw/usr/src/pkgdefs/SUNWmeld/prototype_i386" === End of comments ===== -- ---------------------------------------------------------------------- Paul Cunningham Software Engineer Tadpole Business Unit
