]> git.ozlabs.org Git - yaboot.git/commitdiff
Update clean targets
authorEthan Benson <erbenson@alaska.net>
Sun, 31 Mar 2002 05:00:26 +0000 (05:00 +0000)
committerEthan Benson <erbenson@alaska.net>
Sun, 31 Mar 2002 05:00:26 +0000 (05:00 +0000)
* Remove chmod calls from make clean, arch is supposed to keep track
  of permissions correctly so they shouldn't be needed now.

* Add '-path './{arch}' -prune -o ' to all the find calls so cleaning
  doesn't recurse into arch's revision control directories and possibly
  corrupt them.

* Add archclean target which removes all of arch's cruft so release
  tarballs won't be ridiculously bloated (arch keeps a complete
  duplicate copy of the source making the tarball twice the size it
  should be, no good for release tarballs).  If people want a `archable'
  tree they should just use arch to check one out.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-17

ChangeLog
Makefile

index 13b373560454f04db3c220d5b1c840baad76142b..83612db34ac90c5079eda6f84a7f8c1f2d9f682d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,30 @@
 # tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
+2002-03-31 05:00:26 GMT        Ethan Benson <erbenson@alaska.net>      patch-17
+
+    Summary:
+      Update clean targets
+    Revision:
+      yaboot--devel--1.3--patch-17
+
+    * Remove chmod calls from make clean, arch is supposed to keep track
+      of permissions correctly so they shouldn't be needed now.
+    
+    * Add '-path './{arch}' -prune -o ' to all the find calls so cleaning
+      doesn't recurse into arch's revision control directories and possibly
+      corrupt them.
+    
+    * Add archclean target which removes all of arch's cruft so release
+      tarballs won't be ridiculously bloated (arch keeps a complete
+      duplicate copy of the source making the tarball twice the size it
+      should be, no good for release tarballs).  If people want a `archable'
+      tree they should just use arch to check one out.
+
+    modified files:
+     ChangeLog Makefile
+
+
 2002-03-27 14:10:34 GMT        Ethan Benson <erbenson@alaska.net>      patch-16
 
     Summary:
index 91b8e7ab0c7951a389aa390a4c05a4db1015d928..7c5c1bc852476cc7393c01c8d1702f9736507b51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -148,19 +148,23 @@ bindist: all
 
 clean:
        rm -f second/yaboot util/addnote util/elfextract $(OBJS)
-       find . -name '#*' | xargs rm -f
-       find . -name '.#*' | xargs rm -f
-       find . -name '*~' | xargs rm -f
-       find . -name '*.swp' | xargs rm -f
+       find . -path './{arch}' -prune -o -name '#*' | xargs rm -f
+       find . -path './{arch}' -prune -o -name '.#*' | xargs rm -f
+       find . -path './{arch}' -prune -o -name '*~' | xargs rm -f
+       find . -path './{arch}' -prune -o -name '*.swp' | xargs rm -f
        -gunzip man/*.gz
        rm -rf man.deb
-       chmod 755 ybin/ybin ybin/ofpath ybin/yabootconfig
-       chmod -R u+rwX,go=rX .
-       chmod a-w COPYING
 
 cleandocs:
        make -C doc clean
 
+## removes arch revision control crap, only to be called for making
+## release tarballs.  arch should have a export command like cvs...
+
+archclean:
+       rm -rf '{arch}'
+       find . -type d -name .arch-ids | xargs rm -rf
+
 maintclean: clean cleandocs
 
 release: docs bindist clean