include ../Makefile.config
include Makefile.config

PACKAGE = drakxtools
PKGVERSION = $(VERSION)

POFILES   = $(shell ls share/po/*.po)
MOFILES   = $(POFILES:%.po=%.mo)
OTHERS     = $(OTHERDIRS) $(OTHERFILES)
OTHERDIRS  = tools/serial_probe
OTHERFILES = tools/rpcinfo-flushed.c

.PHONY: all $(DIRS) install clean

all: TAGS $(DIRS)

xs: $(DIRS)

TAGS: $(ALLPMS)
	-etags $^ /usr/lib/perl5/*/*/MDK/Common/*.pm

clean:
	for i in $(DIRS) share/po install/help/po install/share/po; do $(MAKE) -C $$i clean; done;:
	rm -rf auto drakxtools*.tar* *.bak
	find . -name "*~" -o -name ".#*" -o -name "TAGS" -o -name "*.old" | xargs rm -f

check_pms_encoding:
	@for i in $(ALLPMS); do charset=ascii; grep -q 'use utf8' $$i && charset=utf8; iconv -f $$charset -t $$charset $$i >/dev/null || { echo "bad $$charset character in $$i"; exit 1; }; done

check: check_pms_encoding
	perl -I. -Mlang -e 'lang::check'

check2:
	perl -I. -Mkeyboard -e 'keyboard::check'

$(DIRS):
	install -d auto
	$(MAKE) -C $@

test_pms:
	perl_checker install/install2.pm install/steps_gtk.pm install/steps_stdio.pm partition_table/*.pm standalone/{harddrake2,diskdrake,draksec}

test_pms_all:
	perl_checker -v --generate-package-dependencies-graph .deps $(ALLPMS)

%.mo: %.po
	msgfmt -o $@ $<

install_pms stage2 full_stage2:
	make -C install $@

mo_files : $(MOFILES)

# rules to build tarball
localcopy: clean
	rm -rf $(PACKAGE)-$(PKGVERSION)*
	mkdir -p $(PACKAGE)-$(PKGVERSION)/tools
	svn export -q -rBASE . $(PACKAGE)-$(PKGVERSION)/perl-install
	for i in $(OTHERS); do svn export -q ../$$i $(PACKAGE)-$(PKGVERSION)/$$i; done
	rm -rf $(PACKAGE)-$(PKGVERSION)/perl-install/{install,unused,list_modules.pm}
	cp -f ../kernel/list_modules.pm $(PACKAGE)-$(PKGVERSION)/perl-install
	cd $(PACKAGE)-$(PKGVERSION)/perl-install ; mv -f Makefile.drakxtools Makefile
	@make nuke_perl

localdist: tar

tar: localcopy
	tar cfY $(PACKAGE)-$(PKGVERSION).tar.lzma $(PACKAGE)-$(PKGVERSION)
	rm -rf $(PACKAGE)-$(PKGVERSION)

# rules to build a distributable rpm

nuke_perl:
	find $(PACKAGE)-$(PKGVERSION)/perl-install -name '*.pm' | xargs ../tools/simplify-drakx-modules
	find $(PACKAGE)-$(PKGVERSION)/perl-install/standalone -type f | xargs ../tools/simplify-drakx-modules

# [pixel] for my grep looking for any .pm files
pixel_standalone_links:
	rm -rf .standalone_apps.swa
	mkdir .standalone_apps.swa
	for i in $(STANDALONEPMS_); do ln -sf ../standalone/$$i .standalone_apps.swa/$$i.pm; done
CMCIA_CS_DISTRO</option>
<option value='topic/R9_0-64bit-branch'>topic/R9_0-64bit-branch</option>
<option value='topic/R9_1_HP-branch'>topic/R9_1_HP-branch</option>
<option value='topic/a'>topic/a</option>
<option value='topic/before_matchbox_wm'>topic/before_matchbox_wm</option>
<option value='topic/bug-13680'>topic/bug-13680</option>
<option value='topic/dietlibc'>topic/dietlibc</option>
<option value='topic/efi'>topic/efi</option>
<option value='topic/extlinux'>topic/extlinux</option>
<option value='topic/firewall'>topic/firewall</option>
<option value='topic/gdk-pixbuf-0-branch'>topic/gdk-pixbuf-0-branch</option>
<option value='topic/gi-ppc'>topic/gi-ppc</option>
<option value='topic/ia64-8_1'>topic/ia64-8_1</option>
<option value='topic/mandrakesoft'>topic/mandrakesoft</option>
<option value='topic/mlcd4'>topic/mlcd4</option>
<option value='topic/ppp'>topic/ppp</option>
<option value='topic/rp-pppoe'>topic/rp-pppoe</option>
<option value='topic/switching_to_dnf'>topic/switching_to_dnf</option>
<option value='topic/switching_to_urpmi'>topic/switching_to_urpmi</option>
<option value='topic/unlabeled-1.1.1'>topic/unlabeled-1.1.1</option>
<option value='topic/v_webmin_0_87'>topic/v_webmin_0_87</option>
<option value='topic/x86_64-branch'>topic/x86_64-branch</option>
<option value='user/animtim/designWork'>user/animtim/designWork</option>
<option value='user/colin/rescue-systemd'>user/colin/rescue-systemd</option>
<option value='user/ennael/mga6'>user/ennael/mga6</option>
<option value='user/erwan/bug-13680'>user/erwan/bug-13680</option>
<option value='user/jibz/aarch64'>user/jibz/aarch64</option>
<option value='user/martinw/mga6'>user/martinw/mga6</option>
<option value='user/pterjan/arm64'>user/pterjan/arm64</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Mageia Installer and base platform for many utilities</td><td class='sub right'>Thierry Vignaud [tv]</td></tr></table>
<table class='tabs'><tr><td>
<a href='/software/drakx/?h=17.62'>summary</a><a href='/software/drakx/refs/?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>refs</a><a href='/software/drakx/log/perl-install?h=17.62'>log</a><a href='/software/drakx/tree/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>tree</a><a class='active' href='/software/drakx/commit/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>commit</a><a href='/software/drakx/diff/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>diff</a><a href='/software/drakx/stats/perl-install?h=17.62'>stats</a></td><td class='form'><form class='right' method='get' action='/software/drakx/log/perl-install'>
<input type='hidden' name='h' value='17.62'/><input type='hidden' name='id' value='bab6b36d571a50d9ccea33700d4ff10b380ffcbd'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/software/drakx/commit/?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>root</a>/<a href='/software/drakx/commit/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>perl-install</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='17.62'/><input type='hidden' name='id' value='bab6b36d571a50d9ccea33700d4ff10b380ffcbd'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Yuri Chornoivan &lt;yurchor@mageia.org&gt;</td><td class='right'>2012-07-29 09:11:16 +0000</td></tr>
<tr><th>committer</th><td>Yuri Chornoivan &lt;yurchor@mageia.org&gt;</td><td class='right'>2012-07-29 09:11:16 +0000</td></tr>
<tr><th>commit</th><td colspan='2' class='sha1'><a href='/software/drakx/commit/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>bab6b36d571a50d9ccea33700d4ff10b380ffcbd</a> (<a href='/software/drakx/patch/perl-install?id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='sha1'><a href='/software/drakx/tree/?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>19f711d791d360b1ce5af8475a9ba7effbd79975</a> /<a href='/software/drakx/tree/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>perl-install</a></td></tr>
<tr><th>parent</th><td colspan='2' class='sha1'><a href='/software/drakx/commit/perl-install?h=17.62&amp;id=6250b968e7eb341a76381a8136d6548dcdecb459'>6250b968e7eb341a76381a8136d6548dcdecb459</a> (<a href='/software/drakx/diff/perl-install?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd&amp;id2=6250b968e7eb341a76381a8136d6548dcdecb459'>diff</a>)</td></tr><tr><th>download</th><td colspan='2' class='sha1'><a href='/software/drakx/snapshot/drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar'>drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar</a><br/><a href='/software/drakx/snapshot/drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.gz'>drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.gz</a><br/><a href='/software/drakx/snapshot/drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.bz2'>drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.bz2</a><br/><a href='/software/drakx/snapshot/drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.xz'>drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.tar.xz</a><br/><a href='/software/drakx/snapshot/drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.zip'>drakx-bab6b36d571a50d9ccea33700d4ff10b380ffcbd.zip</a><br/></td></tr></table>
<div class='commit-subject'>Update POs to fix bug #1122.</div><div class='commit-msg'></div><div class='diffstat-header'><a href='/software/drakx/diff/?h=17.62&amp;id=bab6b36d571a50d9ccea33700d4ff10b380ffcbd'>Diffstat</a> (limited to 'perl-install')</div><table summary='diffstat' class='diffstat'>