This is the first step to combining the logic of all the check and delete old targets. These should be generalized to: list of stuff to check for, command to print/remove them, and should rely...
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage
Event Timeline
Comment Actions
Like that ?
Makefile.inc1 | ||
---|---|---|
1917–1933 | delete-check-old-files: .SILENT echo ">>> ${PRE_MESSAGE}" . for OFILE in ${OLD_FILES} . if exists(${DESTDIR}/${OFILE}) .if make(delete-old-files) || make(delete-old) chflags noschg "${OFILE}" 2>/dev/null || true; \ rm ${RM_I} "${OFILE}" .else echo ${OFILE} .endif . endif . endfor |
Makefile.inc1 | ||
---|---|---|
1917–1933 | Or maybe REMOVE_FILE=sh -c 'chflags noschg "$$1" 2>/dev/null || true; \ rm ${RM_I} "$$1"' -- and then just do ${REMOVE_FILE} ${OFILE} |
Makefile.inc1 | ||
---|---|---|
1917–1933 | I didn't know that syntax worked, and is pretty much exactly what I wanted. Thanks! |