all: @echo Available targets: @echo " forward, backward, compress, clean-forward, clean-backward" forward: time for i in `cat costanti_e_variabili.txt` ; do (cd tmp && wget -t 1 -O downloaded.xml.gz "http://mowgli.cs.unibo.it:58081/getxml?format=gz&uri=$$i" && wget -t 1 -O downloaded_body.xml.gz "http://mowgli.cs.unibo.it:58081/getxml?format=gz&uri=$$i.body") ; mkdir -p forward/`dirname $$i | sed "s/cic:\///"` && zcat tmp/downloaded.xml.gz > tmp/type.xml && zcat tmp/downloaded_body.xml.gz > tmp/body.xml ; METADATA/meta $$i > forward/`echo $$i | sed "s/cic:\///"`.xml && rm -f tmp/downloaded.xml.gz tmp/downloaded_body.xml.gz tmp/type.xml tmp/body.xml ; done > log 2>&1 time for i in `cat tipi_induttivi.txt` ; do (cd tmp && wget -t 1 -O downloaded.xml.gz "http://mowgli.cs.unibo.it:58081/getxml?format=gz&uri=$$i") && mkdir -p forward/`dirname $$i | sed "s/cic:\///"` && zcat tmp/downloaded.xml.gz > tmp/inductive_type.xml && METADATA/meta_ind forward/`echo $$i | sed "s/cic:\///"` $$i && rm tmp/downloaded.xml.gz tmp/inductive_type.xml ; done >> log 2>&1 (cd forward ; ../mkindex.sh forward) cat forward_rel_or_sort_header.txt forward_rel.xml forward_rel_or_sort_footer.txt > forward_rel.xml.tmp && mv forward_rel.xml.tmp forward_rel.xml cat forward_rel_or_sort_header.txt forward_sort.xml forward_rel_or_sort_footer.txt > forward_sort.xml.tmp && mv forward_sort.xml.tmp forward_sort.xml backward: time for i in `cat all_objects.txt` ; do touch/touch.opt $$i ; done find forward -type f -exec ./invert.pl {} \; find backward -type f -exec ./fix_rdf.pl {} \; (cd backward ; ../mkindex.sh backward) compress: find forward -name "*.xml" -exec gzip {} \; find backward -name "*.xml" -exec gzip {} \; (cd forward ; ../mkindex.sh forward) (cd backward ; ../mkindex.sh backward) clean-forward: rm -rf forward_rel.xml forward_sort.xml forward/* clean-backward: rm -rf backward/* .PHONY: all forward backward compress clean-forward clean-backward