summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/qt-only/compile
blob: 61c1328046139bd03e8660314ae5c6bc7e23d553 (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.cc 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.cc 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; $QTDIR/tools/qembed/qembed --images *.png > ../images.h)

# Now on windows do the following
qmake
make