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