summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/qt-only/compile
blob: fc41caa40009bb9078c32f5b9bf3cb32f2dfedf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# On Linux do this
ln -s ../*.{cpp,h,y,l} .
ln -s ../{KMultiFormListBox,KWidgetStreamer}/*.{cpp,h} .
ln -s $KDESRC/tdelibs/interfaces/kregexpeditor/kregexpeditorinterface.h .
ln -s gen_qregexpparser.cpp gen_qregexpparser.cpp
touch unistd.h
mkdir icons
cp ../picts/* icons
cp $TDEDIR/share/icons/crystalsvg/22x22/actions/{undo,redo,editcut,editcopy,editpaste,fileopen,filesave,contexthelp,1downarrow,1uparrow}.png  icons
mkdir predefined
mkdir predefined/General
cp ../predefined/General/*.regexp predefined/General

flex -Pqregexp -ogen_qregexplexer.cpp qregexpparser.l
bison -d -p qregexp -o gen_qregexpparser.cpp qregexpparser.y

mkdir manual
cd manual
meinproc $KDESRC/tdeutils/doc/KRegExpEditor/index.docbook
for x in *.html; do sed 's/<img src="help:[^>]*>//' < $x > tmp.html; mv tmp.html $x; done
cp $KDESRC/tdeutils/doc/KRegExpEditor/*.png .
cd ..
(cd icons; $TQTDIR/tools/qembed/qembed --images *.png > ../images.h)

# Now on windows do the following
qmake
make