Commit 45f92f73 by Ned Batchelder

A perhaps too-baroque way to clean files but also keep some.

parent 496aaa54
......@@ -3,9 +3,13 @@
### Files private to developers
# Files that should be git-ignored, but are hand-edited or otherwise valued,
# and so should not be destroyed by "make clean".
# start-noclean
requirements/private.txt
lms/envs/private.py
cms/envs/private.py
# end-noclean
### Python artifacts
*.pyc
......
# Do things in edx-platform
clean:
# Remove all the git-ignored stuff, but save and restore things marked
# by start-noclean/end-noclean.
sed -n -e '/start-noclean/,/end-noclean/p' < .gitignore > /tmp/private-files
tar cf /tmp/private.tar `git ls-files --exclude-from=/tmp/private-files --ignored --others`
git clean -fdX
tar xf /tmp/private.tar
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment