Skip to content

Commit

Permalink
added: New make target "reallyclean". Should help until we get clean …
Browse files Browse the repository at this point in the history
…and distclean straightened out.

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC@14408 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
althekiller committed Jul 24, 2008
1 parent 5cfe329 commit 08a6626
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,29 @@ uninstall:
@rm -rf $(prefix)/share/xbmc $(prefix)/bin/xbmc
@echo "Done!"

reallyclean:
@echo " This will delete ALL unversioned files in"; \
echo " your XBMC source tree. If you aren't sure"; \
echo " you want to do this, answer anything but"; \
echo " Y (case sensitive) to the following."; \
echo " DISCLAIMER: Team XBMC is NOT responsible"; \
echo " for ANYTHING lost if you execute this command!"; \
echo -n " Damnserious? (Y/*) "; \
read -n1 PROMPT; \
if [[ "$$PROMPT" = "Y" ]]; then \
SVNV=$$(svnversion -n); _IFS=$$IFS; IFS=$$'\t\n'; \
for i in `svn st --no-ignore | grep ^[I\?] | cut -d' ' -f7-`; \
do echo " Deleting $$i"; \
rm -rf "$$i"; \
done; \
IFS=$$_IFS; \
echo " Recovering any missing files."; \
svn up -r $${SVNV/M/} | awk '{print " "$$0}'; \
echo " Done."; \
echo " The following files may need reverted (svn revert <file>)"; \
svn st | grep ^M | cut -d' ' -f7- | awk '{print " "$$0}'; \
else \
echo; \
fi

include Makefile.include

0 comments on commit 08a6626

Please sign in to comment.