summaryrefslogtreecommitdiffstats
path: root/live/draklive-install/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-23 11:15:41 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-23 11:15:41 +0000
commit75eedf36f7b2685f752ba4908478c4b0f7a872bd (patch)
tree0043bcf6eaa62d33723d33ccda4accf2f57d362c /live/draklive-install/Makefile
parent4ce4095ffa480d6b68f38035bce2efa86905d1aa (diff)
downloaddrakx-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar
drakx-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.gz
drakx-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.bz2
drakx-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.xz
drakx-75eedf36f7b2685f752ba4908478c4b0f7a872bd.zip
initial import of Mandriva One configuration files and draklive-install tool
Diffstat (limited to 'live/draklive-install/Makefile')
-rw-r--r--live/draklive-install/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/live/draklive-install/Makefile b/live/draklive-install/Makefile
new file mode 100644
index 000000000..6d5025822
--- /dev/null
+++ b/live/draklive-install/Makefile
@@ -0,0 +1,21 @@
+NAME = draklive-install
+VERSION := $(shell rpm -q --qf '%{VERSION}\n' --specfile $(NAME).spec | head -1)
+RELEASE := $(shell rpm -q --qf '%{RELEASE}\n' --specfile $(NAME).spec | head -1)
+
+rpm: dis
+ rpm -tb ../$(NAME)-$(VERSION).tar.bz2
+
+check:
+ perl -cw $(NAME)
+
+clean:
+ find -name '*~' -exec rm {} \;
+
+dis ../$(NAME)-$(VERSION).tar.bz2: clean check
+ rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
+ mkdir -p $(NAME)-$(VERSION)
+ find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/
+ find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf
+ tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
+ bzip2 -9f ../$(NAME)-$(VERSION).tar
+ rm -rf $(NAME)-$(VERSION)