Added
Link Here
|
1 |
--- cmd_test.in.orig Sat Sep 4 12:54:22 2004 |
2 |
+++ cmd_test.in Sat Sep 4 12:55:07 2004 |
3 |
@@ -178,7 +178,7 @@ |
4 |
done |
5 |
|
6 |
# Check for extra files left |
7 |
-echo "===> Extra files check" |
8 |
+echo "===> Extra files and directories check" |
9 |
if [ -d ${PREFIX} -a "${USE_X_PREFIX}" != "yes" ] |
10 |
then |
11 |
# Remove PREFIX from the extra files list |
12 |
@@ -186,6 +186,9 @@ |
13 |
find ${PREFIX} ! -type d | \ |
14 |
egrep -v "${PREFIX}/share/nls/(POSIX|en_US.US-ASCII)" | \ |
15 |
sed -e "s,^${PREFIX}/,," |
16 |
+ find ${LOCALBASE}/ -type d | sed "s,^${LOCALBASE}/,," | sort > ${PREFIX}/.PLIST_DIRS.before |
17 |
+ find ${PREFIX}/ -type d | sed "s,^${PREFIX}/,," | sort > ${PREFIX}/.PLIST_DIRS.after |
18 |
+ comm -13 ${PREFIX}/.PLIST_DIRS.before ${PREFIX}/.PLIST_DIRS.after | sort -r | awk '{print "@unexec rmdir %D/"$1" 2>/dev/null || true"}' |
19 |
fi |
20 |
|
21 |
# Finish with a clean workspace |