--- trunk2/Makefile 2004/09/24 18:04:48 469 +++ trunk2/Makefile 2005/07/13 23:38:04 708 @@ -1,14 +1,32 @@ -all: clean +dir=/data/webpac2/out + +all: clean all2all bfilter fixpic + +all2all: rm -f log - ./all2all.pl -# ./all2all.pl --limit_mfn=500 #--start_mfn=8600 - cd out/bfilter && ./bfilter.pl 2 < DescriptorHR.txt > DescriptorHR.js && cd - + rm -Rf out/casket/ +# ./all2all.pl +# ./all2all.pl --limit_mfn=500 #--start_mfn=2200 + ./all2all.pl --limit_mfn=100 #--start_mfn=2200 + +bfilter: + # re-create bfilters + cd out/bfilter && ./bfilter.pl 2 < DescriptorHR.txt > ${dir}/DescriptorHR.js 2>/dev/null && cd - + echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorHR.js + cd out/bfilter && ./bfilter.pl 2 < DescriptorEN.txt > ${dir}/DescriptorEN.js 2>/dev/null && cd - + echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorEN.js + cd out/bfilter && ./bfilter.pl 2 < DescriptorFR.txt > ${dir}/DescriptorFR.js 2>/dev/null && cd - + echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorFR.js + cd out/bfilter && ./bfilter.pl 2 < DescriptorGE.txt > ${dir}/DescriptorGE.js 2>/dev/null && cd - + echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorGE.js clean: rm -f *.bak *.temp rm -Rf out/index/* find out/thes -name "*.html" -exec rm {} \; rm -f out/bfilter/*.txt + rm -f out/browse.html eurovoc/hijerarhija.html + rm -f out/nodes/* eurovoc/nodes/* test: @find out/index/ -name "*.xml" | xargs xmllint --noout 2>&1 | head -10 @@ -23,7 +41,14 @@ html: pods2html lib html - + +symlinks: + cd eurovoc/js && ls ../../out/js/* | grep -v usage.js | xargs -i ln -sf {} + ln -sf ../../out/bfilter/bfilter.js eurovoc/js/bfilter.js + ln -sf ../out/thes eurovoc/thes + cd eurovoc && ls ../out/Descriptor* | xargs -i ln -sf {} + cd eurovoc/index && ls -d ../../out/index/* | xargs -i ln -sf {} + #ln -sf ../../out/js_locale/locale.js eurovoc/js/locale.js ver=`date +%Y%m%d` @@ -37,3 +62,12 @@ tags: ctags *.p[lm] */*.p[lm] */*/*.p[lm] */*/*/*.p[lm] + +zip: + zip -9r eurovoc.zip eurovoc/ -x '*.svn*' + +iso: + mkisofs -o eurovoc.iso -f -J -r -V Eurovoc -v -m '*.svn*' eurovoc/ + +fixpic: + perl -p -i -n -e 's#src="img/crovoc.png#src="../img/crovoc.png#g' eurovoc/nodes/*.html