]> git.sesse.net Git - vlc/commitdiff
* ./toolbox: implemented toolbox --distclean to clean the tree without
authorSam Hocevar <sam@videolan.org>
Wed, 9 Apr 2003 16:05:58 +0000 (16:05 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 9 Apr 2003 16:05:58 +0000 (16:05 +0000)
    having to bootstrap/configure/whatever.

autotools/.cvsignore
toolbox

index 8cfac4bc91750a74f04943ec52554045790b637b..747dca25c62d5ebcad55ed0a95382156a23183f1 100644 (file)
@@ -3,6 +3,7 @@ Makefile
 Makefile.in
 compile
 config.guess
+config.rpath
 config.sub
 depcomp
 install-sh
diff --git a/toolbox b/toolbox
index 3d08d3e3853562982124606f5e29dab386de3fc9..14115458184662f59da3c37aedd809e682c57a18 100755 (executable)
--- a/toolbox
+++ b/toolbox
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  toolbox for the VLC media player
-##  $Id: toolbox,v 1.20 2003/04/06 23:21:13 massiot Exp $
+##  $Id: toolbox,v 1.21 2003/04/09 16:05:58 sam Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
@@ -27,6 +27,7 @@ recognized flags are:
   --update-glade                generate and fix Glade code
   --update-glade2               generate and fix Glade 2 code
   --update-flexml               generate and fix flexml and flex code
+  --distclean                   "make distclean"
 EOF
   exit 1
 }
@@ -72,6 +73,9 @@ case "$1" in
   --update-glade2|--update-glade-2|--fix-glade2)
     action=glade2
     ;;
+  --distclean)
+    action=distclean
+    ;;
   --help)
     help
     ;;
@@ -489,3 +493,26 @@ then
   flex -oflex.c -BLs skin.l
 fi
 
+##
+##  Make distclean
+##
+if test "${action}" = "distclean"
+then
+  set -x
+  # a naive sanity check to make sure we are in a VLC tree
+  test -f vlc.spec -a -f debian/rules || exit 1
+  # let's rock!
+  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 '{}' ';'
+  (cd autotools && find . -name '[a-z]*' -exec rm -f '{}' ';')
+  (cd debian && find . -type d -name '[a-z]*' -maxdepth 1 -exec rm -Rf '{}' ';')
+  find msvc -type f -name '*.dsp' -exec rm -f '{}' ';'
+  find evc -type f -name '*.vcp' -exec rm -f '{}' ';'
+  #find . -type d -name '.deps' -exec rm -Rf '{}' ';'
+  # there's some more cruft all around
+  rm -f configure.ac config.h config.log config.status
+  rm -f vlc vlc-config Makefile Modules.am
+  rm -Rf autom4te.cache
+  rm -f mozilla/vlcintf.h mozilla/vlcintf.xpt
+  # FIXME: a lot of Makefiles are still there
+fi
+