mjr@cthulhu.welch.jhu.edu (Marcus J. Ranum) (02/08/89)
Is it normal for all makes to have a target coded into them for 'markfile.o', depending on 'markfile' and grabbing the sccsid from it ? I did a "make -p" the other day, and noticed this little hack, just waiting to bite someone. --mjr();
jbowe@pineapple.bbn.com (John Bowe) (02/23/89)
mjr@cthulhu.welch.jhu.edu (Marcus J. Ranum): > Is it normal for all makes to have a target coded into them for > 'markfile.o', depending on 'markfile' and grabbing the sccsid from it ? > > I did a "make -p" the other day, and noticed this little hack, just > waiting to bite someone. This is also true of SunOS 3.[45]. Try this one (curtesy r$): Create a file named "markfile" that has only RCS info and check it in % cat >markfile $Header:$ $Log:$ % ci markfile now, with the sysV-derived MAKE, you'll automatically get a file that has static char _sccsid[] = "$Header: markfile r1.3, 10/10/89 ..."; as its only line, which you can compile and do an "ident" on to see the revision. john <jbowe@bbn.com>