-
Notifications
You must be signed in to change notification settings - Fork 15
/
clean.sh
executable file
·198 lines (175 loc) · 5.9 KB
/
clean.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#!/bin/bash
rm -f install
if [ -e qconfig/qconfig.h ]; then
export CC=${CROSS}gcc
export CXX=${CROSS}g++
export LD=${CROSS}ld
export AR=${CROSS}ar
export AS=${CROSS}as
export NM=${CROSS}nm
export STRIP=${CROSS}strip
export RANLIB=${CROSS}ranlib
export DLLTOOL=${CROSS}dlltool
export OBJDUMP=${CROSS}objdump
export RESCOMP=${CROSS}windres
export WINDRES=${CROSS}windres
export QTDIR=$PWD/src/qt
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=win32-g++-cross
rm -f qconfig/qconfig.h
rm -f qconfig/qconfig.cpp
cd src/pthreads
make clean
cd ../..
else
export QMAKESPEC=linux-g++
export QTDIR=$PWD/lite-instalacion
export PATH=$QTDIR/bin:$PATH
fi
export QTDIR=$PWD/abanq-build
export PATH=$QTDIR/bin:$PATH
make -s clean
make -s distclean
cd src
make -s clean
make -s distclean
cd qsa
qmake
cd configure2
qmake
cd ../src/qsa
make -s clean
make -s distclean
cd ../..
make -s clean
make -s distclean
cd ../..
cd src/qt
make -s clean
make -s distclean
rm -f include/*.h
rm -f include/private/*.h
rm -f $HOME/.qmake.cache
rm -vf .qmake.cache
rm -vfR ./lib/lib*
rm -vfR ./lib/*.dll
cd qmake
make -s clean
make -s distclean
cd ../bin
rm -vf *
cd ../../../
rm -f src/qsa/tools/designer/editor/preferences.cpp
rm -f src/qsa/tools/designer/editor/preferences.h
rm -f src/qsa/src/ide/idewindow.h
rm -f src/qsa/src/ide/outputcontainer.cpp
rm -f src/qsa/src/ide/preferencescontainer.cpp
rm -f src/qsa/src/ide/outputcontainer.h
rm -f src/qsa/src/ide/preferencescontainer.h
rm -f src/qsa/src/ide/projectcontainer.cpp
rm -f src/qsa/src/ide/projectcontainer.h
rm -f src/qsa/src/ide/gotoline.cpp
rm -f src/qsa/src/ide/replacetext.cpp
rm -f src/qsa/src/ide/gotoline.h
rm -f src/qsa/src/ide/replacetext.h
rm -f src/qsa/src/ide/findtext.cpp
rm -f src/qsa/src/ide/idewindow.cpp
rm -f src/qsa/src/ide/findtext.h
rm -f src/qsa/src/qsa/qmake_image_collection.cpp
rm -f src/qt/lib/qt-mt.pc
rm -f src/qt/lib/qt.pc
rm -f src/qt/config.status
rm -f src/qsa/configure2/configure2
rm -f src/qt/src/tools/qconfig.cpp
rm -f src/qt/config.tests/unix/largefile/largefiletest
rm -f src/qt/config.tests/unix/endian/endiantest
rm -f src/qt/config.tests/unix/ptrsize/ptrsizetest
rm -f src/qt/config.tests/unix/ipv6/ipv6test
rm -f src/qt/config.tests/unix/largefile/largefiletest.exe
rm -f src/qt/config.tests/unix/endian/endiantest.exe
rm -f src/qt/config.tests/unix/ptrsize/ptrsizetest.exe
rm -f src/qt/config.tests/unix/ipv6/ipv6test.exe
rm -f src/qt/mkspecs/default
rm -f src/qt/mkspecs/win32-g++-cross/qmake.conf
rm -f src/qt/mkspecs/win32-g++-cross/qtcrtentrypoint.cpp
rm -f src/qt/tools/designer/app/hoard.pri
find . -name "eneboo-build*" -exec rm -vfR \{\} \;
find . -name "*~" -exec rm -vf \{\} \;
find . -name "*.bak" -exec rm -vf \{\} \;
find . -name "*.old" -exec rm -vf \{\} \;
for a in $(find . -name "*.pro" -print)
do
cat $a | sed "s/PREFIX\ =\ .*/PREFIX=/" | sed "s/ROOT\ =\ .*/ROOT=/" | sed "s/INCLUDE_PGSQL\ =\ .*/INCLUDE_PGSQL=/" | sed "s/LIB_PGSQL\ =\ .*/LIB_PGSQL=/" > ./temp
mv -f temp $a
done
find . -name "Makefile" -exec rm -vf \{\} \;
find . -name ".moc" -type d -exec rm -vfR \{\} \;
find . -name ".obj" -type d -exec rm -vfR \{\} \;
find . -name ".uic" -type d -exec rm -vfR \{\} \;
find . -name ".tmp" -type d -exec rm -vfR \{\} \;
find . -name "*.qm" -exec rm -vf \{\} \;
find . -name "*.o" -exec rm -vf \{\} \;
find . -name "*.moc" -exec rm -vf \{\} \;
find . -name ".*.cache" -exec rm -vf \{\} \;
find . -name "*.prl" -exec rm -vf \{\} \;
find . -name "*.*.orig" -exec rm -vf \{\} \;
rm -vf ./AQConfig.*
rm -vf ./src/translations/translations.pro
rm -vf *.kdevses
rm -vf *.pcs
rm -vf settings.pro
rm -vfR ./bin ./lib ./share
if [ -d qconfig ]; then
find . -name "C:*" -exec rm -fR \{\} \;
find . -name "*_ld_script" -exec rm -fR \{\} \;
find . -name ".o" -type d -exec rm -fR \{\} \;
find src/qt/plugins/ -type d -name "obj" -exec rm -fR \{\} \;
rm -vfR src/qt/phrasebooks
rm -vfR src/qt/templates
rm -vfR src/qt/share
rm -vfR src/qt/plugins/designer
rm -vfR src/qt/plugins/codecs
rm -vfR src/qt/plugins/styles
rm -vfR src/qt/plugins/accessible
rm -vfR src/qt/plugins/imageformats
rm -vfR src/qt/plugins/sqldrivers
rm -vfR src/qt/plugins/gfxdrivers
rm -vfR src/qt/include/qconfig.h.n
rm -vfR src/qt/include/qmodules.h.n
rm -vfR src/qt/include/qmake
rm -vfR src/qt/src/Makefile.main
rm -vfR src/qt/src/tools/qconfig.cpp.n
rm -vfR src/qt/mkspecs/linux-g++/linux-g++
rm -vfR src/qt/src/tmp
fi
rm -vfR src/qt/plugins/accessible
rm -vfR src/qt/include/qmake
rm -vfR src/qt/config.tests/mac/tst_mac_version
rm -vfR src/qt/config.tests/mac/mac_version.cpp
rm -f src/fllite/qmake_image_collection.cpp
rm -f src/flbase/FLStaticLoaderUI.h
rm -f src/flbase/FLWidgetScriptEditor.h
rm -f src/flbase/FLWidgetAbout.cpp
rm -f src/flbase/FLWidgetConnectDB.h
rm -f src/flbase/FLWidgetReportViewer.h
rm -f src/flbase/FLWidgetReportViewer.cpp
rm -f src/flbase/FLWidgetFieldDB.h
rm -f src/flbase/FLWidgetFieldDB.cpp
rm -f src/flbase/FLWidgetScriptEditor.cpp
rm -f src/flbase/qmake_image_collection.cpp
rm -f src/flbase/FLWidgetTableDB.h
rm -f src/flbase/FLStaticLoaderUI.cpp
rm -f src/flbase/FLWidgetAbout.h
rm -f src/flbase/FLWidgetTableDB.cpp
rm -f src/flbase/FLWidgetConnectDB.cpp
rm -f src/advance/qmake_image_collection.cpp
rm -f src/plugins/designer/fltabledb/qmake_image_collection.cpp
rm -f src/plugins/designer/fltable/qmake_image_collection.cpp
rm -f src/plugins/designer/flfielddb/qmake_image_collection.cpp
rm -f src/qwt/designer/qmake_image_collection.cpp
rm -f src/plugins/styles/kde/styles/dotnet2/src/moc/moc_dotnet.cpp
rm -f src/plugins/styles/kde/styles/liquid/src/moc/moc_liquid.cpp
rm -f src/plugins/styles/kde/styles/plastik/src/moc/moc_plastik.cpp
rm -f src/libmysql
rm -f clean
# svn up