aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e340e0..a717878 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,8 @@ dis: clean
cpio -pd mandrake_desk-$(VERSION)/
find mandrake_desk-$(VERSION) \
-type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf
- perl -p -i -e 's|^%define version.*|%define version $(VERSION)|' \
+ egrep "^%define version $(VERSION)" mandrake_desk.spec ||
+ perl -p -i -e 's|^%define version.*|%define version $(VERSION)|' \
mandrake_desk.spec
tar cf ../mandrake_desk-$(VERSION).tar mandrake_desk-$(VERSION)
bzip2 -9f ../mandrake_desk-$(VERSION).tar