/[webpac]/trunk2/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 579 - (show annotations)
Mon Nov 1 22:15:41 2004 UTC (14 years, 8 months ago) by dpavlin
File size: 2190 byte(s)
make iframes after first level of tree

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

Properties

Name Value
cvs2svn:cvs-rev 1.6

  ViewVC Help
Powered by ViewVC 1.1.26