| 1 |
482 |
dpavlin |
dir=/data/webpac2/out |
| 2 |
|
|
|
| 3 |
582 |
dpavlin |
all: clean all2all bfilter fixpic |
| 4 |
480 |
dpavlin |
|
| 5 |
|
|
all2all: |
| 6 |
446 |
dpavlin |
rm -f log |
| 7 |
708 |
dpavlin |
rm -Rf out/casket/ |
| 8 |
|
|
# ./all2all.pl |
| 9 |
582 |
dpavlin |
# ./all2all.pl --limit_mfn=500 #--start_mfn=2200 |
| 10 |
708 |
dpavlin |
./all2all.pl --limit_mfn=100 #--start_mfn=2200 |
| 11 |
389 |
dpavlin |
|
| 12 |
480 |
dpavlin |
bfilter: |
| 13 |
|
|
# re-create bfilters |
| 14 |
482 |
dpavlin |
cd out/bfilter && ./bfilter.pl 2 < DescriptorHR.txt > ${dir}/DescriptorHR.js 2>/dev/null && cd - |
| 15 |
|
|
echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorHR.js |
| 16 |
|
|
cd out/bfilter && ./bfilter.pl 2 < DescriptorEN.txt > ${dir}/DescriptorEN.js 2>/dev/null && cd - |
| 17 |
|
|
echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorEN.js |
| 18 |
|
|
cd out/bfilter && ./bfilter.pl 2 < DescriptorFR.txt > ${dir}/DescriptorFR.js 2>/dev/null && cd - |
| 19 |
|
|
echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorFR.js |
| 20 |
|
|
cd out/bfilter && ./bfilter.pl 2 < DescriptorGE.txt > ${dir}/DescriptorGE.js 2>/dev/null && cd - |
| 21 |
|
|
echo "if (self.document.myfilter) self.document.myfilter.arr=headlines;" >> ${dir}/DescriptorGE.js |
| 22 |
480 |
dpavlin |
|
| 23 |
1 |
dpavlin |
clean: |
| 24 |
6 |
dpavlin |
rm -f *.bak *.temp |
| 25 |
405 |
dpavlin |
rm -Rf out/index/* |
| 26 |
413 |
dpavlin |
find out/thes -name "*.html" -exec rm {} \; |
| 27 |
|
|
rm -f out/bfilter/*.txt |
| 28 |
530 |
dpavlin |
rm -f out/browse.html eurovoc/hijerarhija.html |
| 29 |
609 |
dpavlin |
rm -f out/nodes/* eurovoc/nodes/* |
| 30 |
3 |
dpavlin |
|
| 31 |
405 |
dpavlin |
test: |
| 32 |
|
|
@find out/index/ -name "*.xml" | xargs xmllint --noout 2>&1 | head -10 |
| 33 |
|
|
|
| 34 |
162 |
dpavlin |
profile: |
| 35 |
389 |
dpavlin |
perl -d:DProf ./all2all.pl |
| 36 |
|
|
#dprofpp |
| 37 |
235 |
dpavlin |
|
| 38 |
421 |
dpavlin |
profile2: |
| 39 |
|
|
perl -d:SmallProf ./all2all.pl |
| 40 |
|
|
sort -k 2nr,2 smallprof.out | vi -R - |
| 41 |
|
|
|
| 42 |
429 |
dpavlin |
html: |
| 43 |
|
|
pods2html lib html |
| 44 |
|
|
|
| 45 |
521 |
dpavlin |
symlinks: |
| 46 |
|
|
cd eurovoc/js && ls ../../out/js/* | grep -v usage.js | xargs -i ln -sf {} |
| 47 |
|
|
ln -sf ../../out/bfilter/bfilter.js eurovoc/js/bfilter.js |
| 48 |
525 |
dpavlin |
ln -sf ../out/thes eurovoc/thes |
| 49 |
521 |
dpavlin |
cd eurovoc && ls ../out/Descriptor* | xargs -i ln -sf {} |
| 50 |
|
|
cd eurovoc/index && ls -d ../../out/index/* | xargs -i ln -sf {} |
| 51 |
542 |
dpavlin |
#ln -sf ../../out/js_locale/locale.js eurovoc/js/locale.js |
| 52 |
521 |
dpavlin |
|
| 53 |
235 |
dpavlin |
ver=`date +%Y%m%d` |
| 54 |
|
|
|
| 55 |
|
|
dist: |
| 56 |
317 |
dpavlin |
svn log -v > ChangeLog |
| 57 |
235 |
dpavlin |
rm -Rf webpac-$(ver) |
| 58 |
|
|
mkdir webpac-$(ver) |
| 59 |
317 |
dpavlin |
svn ls -R | cpio -pvd webpac-$(ver)/ |
| 60 |
235 |
dpavlin |
tar cfvz ../webpac-$(ver).tar.gz webpac-$(ver)/ |
| 61 |
|
|
rm -Rf webpac-$(ver) |
| 62 |
|
|
|
| 63 |
438 |
dpavlin |
tags: |
| 64 |
|
|
ctags *.p[lm] */*.p[lm] */*/*.p[lm] */*/*/*.p[lm] |
| 65 |
532 |
dpavlin |
|
| 66 |
|
|
zip: |
| 67 |
542 |
dpavlin |
zip -9r eurovoc.zip eurovoc/ -x '*.svn*' |
| 68 |
|
|
|
| 69 |
|
|
iso: |
| 70 |
|
|
mkisofs -o eurovoc.iso -f -J -r -V Eurovoc -v -m '*.svn*' eurovoc/ |
| 71 |
582 |
dpavlin |
|
| 72 |
|
|
fixpic: |
| 73 |
|
|
perl -p -i -n -e 's#src="img/crovoc.png#src="../img/crovoc.png#g' eurovoc/nodes/*.html |