projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
09b22f8
)
make upgrade - Allow removal of protected files
author
Matthew Dillon <dillon@apollo.backplane.com>
Fri, 6 May 2011 08:39:16 +0000 (
01:39
-0700)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Fri, 6 May 2011 08:39:16 +0000 (
01:39
-0700)
* chflags -Rf noschg <blah> from the files to be deleted list
before attempting to rm -rf <blah>.
* Fixes the proper removal of obsolete or moved libraries.
etc/Makefile
patch
|
blob
|
blame
|
history
diff --git
a/etc/Makefile
b/etc/Makefile
index
6302994
..
2b97caa
100644
(file)
--- a/
etc/Makefile
+++ b/
etc/Makefile
@@
-98,6
+98,7
@@
remove-obsolete-files:
@for item in ${TO_REMOVE}; do \
if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \
echo "${DESTDIR}$${item}"; \
+ chflags -Rf noschg "${DESTDIR}$${item}"; \
rm -rf "${DESTDIR}$${item}"; \
fi; \
done