Do not clean docs directory

The docs/source has been introduced by change-id:
Ide5f7d980a294c7a9f8a3decaed0939f1c239934, but clean.sh try to clean
whole docs direcotry, which is not right.

Meanwhile, there are directories in FILES_TO_CLEAN variable, which means
rm -f will not work. We need to use rm -rf.

Change-Id: I4e10d70d5638ce7e7a9215f5bd848422aa90aad3
Closes-Bug: #1335399
This commit is contained in:
ZhiQiang Fan 2014-06-28 16:50:22 +08:00
parent 98e3236d44
commit ecd05637a3

View File

@ -120,9 +120,9 @@ fi
# Clean up files # Clean up files
FILES_TO_CLEAN=".localrc.auto docs-files docs/ shocco/ stack-screenrc test*.conf* test.ini*" FILES_TO_CLEAN=".localrc.auto docs/files docs/html shocco/ stack-screenrc test*.conf* test.ini*"
FILES_TO_CLEAN+=".stackenv .prereqs" FILES_TO_CLEAN+=".stackenv .prereqs"
for file in $FILES_TO_CLEAN; do for file in $FILES_TO_CLEAN; do
rm -f $TOP_DIR/$file rm -rf $TOP_DIR/$file
done done