Changeset 4652 for trunk/admin

Show
Ignore:
Timestamp:
10/02/06 02:59:15 (2 years ago)
Author:
erijo
Message:

Make cvs-clean work again. It will now remove all files that are ignored by svn.
Also make svn an alias target for cvs and svn-clean an alias for cvs-clean.

Usage:

qt-gui# make -f admin/Makefile.common svn-clean
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/Makefile.common

    r4526 r4652  
    2121 
    2222cvs-clean: 
    23     @if test ! -d CVS; then \ 
    24           echo "you don't have a toplevel CVS directory."; \ 
    25           echo "You most certainly didn't use cvs to get these sources."; \ 
    26           echo "But this function depends on cvs's informations."; \ 
    27           exit 1 ;\ 
    28         fi;\ 
    29         pwd=`pwd` ;\ 
    30         dirs=`find . -type d | grep -v CVS | sed -e "s#^./##"` ;\ 
    31         for i in $$dirs; do \ 
    32           if test ! -d $$pwd/$$i/CVS; then \ 
    33             echo "D $$i" ;\ 
    34             rm -rf $$pwd/$$i; \ 
    35             continue; \ 
    36           fi ;\ 
    37           cd $$pwd/$$i ;\ 
    38           for f in * .*; do \ 
    39             if test ! -d $$f; then \ 
    40               if grep "^/$$f/" CVS/Entries > /dev/null; then \ 
    41                 a="b"; \ 
    42               else \ 
    43                 echo "F $$i/$$f"; \ 
    44                 rm -f $$pwd/$$i/$$f; \ 
    45               fi; \ 
    46             fi ; \ 
    47           done; \ 
    48         done 
     23    @if test ! -d .svn; then \ 
     24        echo "You don't have a toplevel .svn directory."; \ 
     25        echo "You most certainly didn't use svn to get these sources."; \ 
     26        echo "But this function depends on svn's informations."; \ 
     27        exit 1 ;\ 
     28    fi;\ 
     29    svn status --ignore-externals --no-ignore --non-interactive | \ 
     30    grep '^I' | awk '{print $$2}' | \ 
     31    xargs -I file rm -rfv "file" 
    4932 
     33svn: cvs 
     34 
     35svn-clean: cvs-clean