[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force X.Org X11 SVN commit: r29 - trunk/debian



Author: branden
Date: 2005-03-10 01:31:15 -0500 (Thu, 10 Mar 2005)
New Revision: 29

Modified:
   trunk/debian/rules
Log:
Fix the clean rule to only attempt a distclean if xc/xmakefile exists.

Document how to restore the xc directory to a pristine state if things have
gone wrong.


Modified: trunk/debian/rules
===================================================================
--- trunk/debian/rules	2005-03-10 05:59:53 UTC (rev 28)
+++ trunk/debian/rules	2005-03-10 06:31:15 UTC (rev 29)
@@ -16,8 +16,14 @@
 stamp-build:
 	$(MAKE) -C xc World
 
+# If the tree cannot be cleaned and no source package is available:
+#   1) remove the xc directory with rm -rf
+#   2) restore it by svn exporting it from the repository, e.g.
+#      $ svn export svn://necrotic.deadbeast.net/xorg-x11/trunk/xc
 clean:
-	$(MAKE) -C xc distclean
+	if [ -f xc/xmakefile ]; then \
+	    $(MAKE) -C xc distclean; \
+	fi
 	rm -f stamp-build
 
 # This rule removes stuff from the upstream source tree that we don't need, or



Reply to: