Changeset e0cc8b35f180ee576604ef69c92f6f2c0e23d8a9
- Timestamp:
- 09/04/03 18:05:58
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1049904358 +0000
- git-parent:
[ee40e8a760706fec19803191b3143534b9a3a14b]
- git-author:
- Sam Hocevar <sam@videolan.org> 1049904358 +0000
- Message:
- ./toolbox: implemented toolbox --distclean to clean the tree without
having to bootstrap/configure/whatever.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r11eecc2 |
re0cc8b3 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.20 2003/04/06 23:21:13 massiot Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.21 2003/04/09 16:05:58 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 28 | 28 | --update-glade2 generate and fix Glade 2 code |
|---|
| 29 | 29 | --update-flexml generate and fix flexml and flex code |
|---|
| | 30 | --distclean "make distclean" |
|---|
| 30 | 31 | EOF |
|---|
| 31 | 32 | exit 1 |
|---|
| … | … | |
| 72 | 73 | --update-glade2|--update-glade-2|--fix-glade2) |
|---|
| 73 | 74 | action=glade2 |
|---|
| | 75 | ;; |
|---|
| | 76 | --distclean) |
|---|
| | 77 | action=distclean |
|---|
| 74 | 78 | ;; |
|---|
| 75 | 79 | --help) |
|---|
| … | … | |
| 491 | 495 | fi |
|---|
| 492 | 496 | |
|---|
| | 497 | ## |
|---|
| | 498 | ## Make distclean |
|---|
| | 499 | ## |
|---|
| | 500 | if test "${action}" = "distclean" |
|---|
| | 501 | then |
|---|
| | 502 | set -x |
|---|
| | 503 | # a naive sanity check to make sure we are in a VLC tree |
|---|
| | 504 | test -f vlc.spec -a -f debian/rules || exit 1 |
|---|
| | 505 | # let's rock! |
|---|
| | 506 | find . -type f '(' -name '*.[oa]' -o -name '*.so' -o -name '*.sl' -o -name '*.dylib' -o -name '*.dll' -o -name .dirstamp -o -name Makefile.in -o -name 'stamp-h*' -o -name '*~' -o -name '*.bak' -o -name '*.moc.cpp' ')' -exec rm -f '{}' ';' |
|---|
| | 507 | (cd autotools && find . -name '[a-z]*' -exec rm -f '{}' ';') |
|---|
| | 508 | (cd debian && find . -type d -name '[a-z]*' -maxdepth 1 -exec rm -Rf '{}' ';') |
|---|
| | 509 | find msvc -type f -name '*.dsp' -exec rm -f '{}' ';' |
|---|
| | 510 | find evc -type f -name '*.vcp' -exec rm -f '{}' ';' |
|---|
| | 511 | #find . -type d -name '.deps' -exec rm -Rf '{}' ';' |
|---|
| | 512 | # there's some more cruft all around |
|---|
| | 513 | rm -f configure.ac config.h config.log config.status |
|---|
| | 514 | rm -f vlc vlc-config Makefile Modules.am |
|---|
| | 515 | rm -Rf autom4te.cache |
|---|
| | 516 | rm -f mozilla/vlcintf.h mozilla/vlcintf.xpt |
|---|
| | 517 | # FIXME: a lot of Makefiles are still there |
|---|
| | 518 | fi |
|---|
| | 519 | |
|---|