source: titan/titan/makesh4.sh @ 36431

Last change on this file since 36431 was 36431, checked in by obi, 6 years ago

fix

  • Property svn:executable set to *
File size: 39.7 KB
Line 
1TYPE=$1
2STM=$2
3MEDIAFW=$3
4SVNUSER=$4
5SVNPASS=$5
6SVNURL=$6
7KERNELDIR=$7
8ROOTDIR=$8
9IPKDIR=$9
10VERSION=${10}
11BUILDTYPE=${11}
12BOX=${12}
13GROUP=${13}
14DISTRO=${14}
15ARCH=${15}
16SRCDIR=${16}
17CPU=${17}
18BOXNAME=${18}
19TYPE1=${19}
20CREATE=1
21
22rm "$HOME"/flashimg/.ipk-build-error
23
24# work
25#mv -f "$HOME"/flashimg/$SRCDIR/titan/struct.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/struct.h
26
27#if [ "$GROUP" = "dev" ];then
28#   mv -f "$HOME"/flashimg/$SRCDIR/titan/skin.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/skin.h
29#fi
30
31if [ -z "$TYPE" ]; then
32    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
33    touch "$HOME"/flashimg/.ipk-build-error
34    exit 1
35fi
36
37if [ -z "$STM" ]; then
38    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
39    touch "$HOME"/flashimg/.ipk-build-error
40    exit 1
41fi
42
43if [ -z "$MEDIAFW" ]; then
44    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
45    touch "$HOME"/flashimg/.ipk-build-error
46    exit 1
47fi
48
49if [ -z "$SVNUSER" ]; then
50    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
51    touch "$HOME"/flashimg/.ipk-build-error
52    exit 1
53fi
54
55if [ -z "$SVNPASS" ]; then
56    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
57    touch "$HOME"/flashimg/.ipk-build-error
58    exit 1
59fi
60
61if [ -z "$SVNURL" ]; then
62    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
63    touch "$HOME"/flashimg/.ipk-build-error
64    exit 1
65fi
66
67if [ -z "$KERNELDIR" ]; then
68    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
69    touch "$HOME"/flashimg/.ipk-build-error
70    exit 1
71fi
72
73if [ -z "$ROOTDIR" ]; then
74    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
75    touch "$HOME"/flashimg/.ipk-build-error
76    exit 1
77fi
78
79if [ -z "$IPKDIR" ]; then
80    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
81    touch "$HOME"/flashimg/.ipk-build-error
82    exit 1
83fi
84
85if [ -z "$VERSION" ]; then
86    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
87    touch "$HOME"/flashimg/.ipk-build-error
88    exit 1
89fi
90
91if [ -z "$BUILDTYPE" ]; then
92    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
93    echo BUILDTYPE 0 = build all
94    echo BUILDTYPE 1 = build libdreamdvd and titan
95    echo BUILDTYPE 2 = build titan only
96    touch "$HOME"/flashimg/.ipk-build-error
97    exit 1
98fi
99
100
101if [ $# -lt 10 ]; then
102    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
103    echo BUILDTYPE 0 = build all
104    echo BUILDTYPE 1 = build libdreamdvd and titan
105    echo BUILDTYPE 2 = build titan only
106    touch "$HOME"/flashimg/.ipk-build-error
107    exit 1
108fi
109
110echo "[titan]--------------------------------------------------------"
111echo "[titan] get skin"
112echo "[titan]--------------------------------------------------------"
113
114rm -rf "$HOME"/flashimg/$SRCDIR/skin
115mkdir "$HOME"/flashimg/$SRCDIR/skin
116svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_default/_path_/usr/local/share/titan/skin/default "$HOME"/flashimg/$SRCDIR/skin/default
117
118echo "[titan]--------------------------------------------------------"
119echo "[titan] get skin done"
120echo "[titan]--------------------------------------------------------"
121
122echo "[titan]--------------------------------------------------------"
123echo "[titan] get settings"
124echo "[titan]--------------------------------------------------------"
125rm -rf "$HOME"/flashimg/$SRCDIR/settings.svn
126if [ "$TYPE" = "ufs910" ] || [ "$TYPE" = "ufs922" ];then
127    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
128elif [ "$TYPE1" = "homecastpro-sat" ];then
129    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_orf_1xsat_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
130elif [ "$TYPE1" = "homecastpro-cable" ];then
131    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_kabelplus_cable_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
132else
133    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
134fi
135sort -u "$HOME"/flashimg/$SRCDIR/settings.svn/channel > "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort
136mv -f "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort "$HOME"/flashimg/$SRCDIR/settings.svn/channel
137sed s/"^ *"// -i "$HOME"/flashimg/$SRCDIR/settings.svn/channel
138
139echo "[titan]--------------------------------------------------------"
140echo "[titan] get settings done"
141echo "[titan]--------------------------------------------------------"
142
143cp -a "$HOME"/flashimg/$SRCDIR/skins/[^.]* "$HOME"/flashimg/$SRCDIR/plugins
144
145echo "[titan]--------------------------------------------------------"
146echo "[titan] cleanup"
147echo "[titan]--------------------------------------------------------"
148
149cd "$HOME"/flashimg/$SRCDIR/titan
150rm -rf titan
151rm -rf titan.o
152rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.o"`
153rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.so"`
154
155echo "[titan]--------------------------------------------------------"
156echo "[titan] cleanup done"
157echo "[titan]--------------------------------------------------------"
158
159#echo "[titan]--------------------------------------------------------"
160#echo "[titan] Make Securety"
161#echo "[titan]--------------------------------------------------------"
162
163"$HOME"/flashimg/$SRCDIR/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE $SRCDIR $CPU $STM $BOXNAME
164
165#echo "[titan]--------------------------------------------------------"
166#echo "[titan] Security done"
167#echo "[titan]--------------------------------------------------------"
168
169echo "[titan]--------------------------------------------------------"
170echo "[titan] Make Tpkdir"
171echo "[titan]--------------------------------------------------------"
172
173echo "$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
174"$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
175
176echo "[titan]--------------------------------------------------------"
177echo "[titan] Tpkdir done"
178echo "[titan]--------------------------------------------------------"
179
180if [ $BUILDTYPE == 10 ] || [ $BUILDTYPE == 11 ]; then
181    #echo "[titan]--------------------------------------------------------"
182    #echo "[titan] libipkg"
183    #echo "[titan]--------------------------------------------------------"
184    #cd "$HOME"/flashimg/$SRCDIR/libipkg
185    #./makesh4.sh $STM
186    #cd "$HOME"/flashimg/$SRCDIR/titan
187    #if [ ! -e "$HOME"/flashimg/$SRCDIR/libipkg/.libs/libipkg.so.0.0.0 ]; then
188    #   echo "[titan]--------------------------------------------------------"
189    #   echo "[titan] ipkg building error !!!"
190    #   echo "[titan] check your src"
191    #   echo "[titan]--------------------------------------------------------"
192    #   touch "$HOME"/flashimg/.ipk-build-error
193    #   exit 1
194    #fi
195    #echo "[titan]--------------------------------------------------------"
196    #echo "[titan] libipkg done"
197    #echo "[titan]--------------------------------------------------------"
198   
199    ###
200    echo "[titan]--------------------------------------------------------"
201    echo "[titan] libdreamdvd"
202    echo "[titan]--------------------------------------------------------"
203    cd "$HOME"/flashimg/$SRCDIR/libdreamdvd
204    ./makesh4.sh $STM
205    cd "$HOME"/flashimg/$SRCDIR/titan
206    if [ ! -e "$HOME"/flashimg/$SRCDIR/libdreamdvd/.libs/libdreamdvd.so.0.0.0 ]; then
207        echo "[titan]--------------------------------------------------------"
208        echo "[titan] libdreamdvd building error !!!"
209        echo "[titan] check your src"
210        echo "[titan]--------------------------------------------------------"
211        touch "$HOME"/flashimg/.ipk-build-error
212        exit 1
213    fi
214    cp "$HOME"/flashimg/$SRCDIR/libdreamdvd/.libs/libdreamdvd.so.0.0.0 "$ROOTDIR"/lib
215   
216    echo "[titan]--------------------------------------------------------"
217    echo "[titan] libdreamdvd done"
218    echo "[titan]--------------------------------------------------------"
219    ###
220fi
221
222echo "[titan]--------------------------------------------------------"
223echo "[titan] update git cdkroot"
224echo "[titan]--------------------------------------------------------"
225
226#cp "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libdreamdvd/.libs/* $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib
227
228echo "[titan]--------------------------------------------------------"
229echo "[titan] update git cdkroot done"
230echo "[titan]--------------------------------------------------------"
231
232
233echo "[titan]--------------------------------------------------------"
234echo "[titan] Make titan"
235echo "[titan]--------------------------------------------------------"
236
237if [ $MEDIAFW = 1 ]; then
238    eplayer=EPLAYER3
239    eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/apps/misc/tools/libeplayer3/include
240    eplayerlib=eplayer3
241else
242    eplayer=EPLAYER4
243    eplayerinclude="$HOME/flashimg/BUILDGIT/checkout_$STM/tufsbox/cdkroot/usr/include/gstreamer-0.10
244             -I$HOME/flashimg/BUILDGIT/checkout_$STM/tufsbox/cdkroot/usr/include/glib-2.0
245             -I$HOME/flashimg/BUILDGIT/checkout_$STM/tufsbox/cdkroot/usr/include/libxml2
246             -I$HOME/flashimg/BUILDGIT/checkout_$STM/tufsbox/cdkroot/usr/lib/glib-2.0/include"
247    eplayerlib=gstreamer-0.10
248fi
249
250if [ "$GROUP" = "dev" ] && [ "$TYPE" != "ufs910" ] && [ "$TYPE" != "ufs922" ]; then
251    devflag="-finstrument-functions -rdynamic -DBETA"
252else
253    devflag=""
254fi
255
256"$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tufsbox/cross/bin/sh4-linux-gcc -DSH4 -D$eplayer -DDVDPLAYER -Os $devflag -export-dynamic -Wall -Wno-unused-but-set-variable \
257    -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tufsbox/cdkroot/usr/include/freetype2 \
258    -I $eplayerinclude \
259    -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/apps/titan/libdreamdvd \
260    -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/driver/bpamem \
261    -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/apps/misc/tools/libmmeimage \
262    -I "$HOME"/flashimg/$SRCDIR \
263    -c titan.c
264   
265#"$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -Os -Wl,-rpath -Wl,/usr/lib $devflag -export-dynamic -lpthread -ldl -lpng -lfreetype -l$eplayerlib -ldreamdvd -ljpeg -lmmeimage -lmme_host -Wall \
266#   titan.o \
267#   -o titan
268
269#cd "$HOME"/flashimg/$SRCDIR/titan
270#mkdir .deps
271
272#"$HOME"/flashimg/BUILDGIT/checkout_$STM/tufsbox/devkit/sh4/bin/sh4-linux-gcc -DPACKAGE_NAME=\"tuxbox-apps-titan\" -DPACKAGE_TARNAME=\"tuxbox-titan\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"tuxbox-apps-titan\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tuxbox-titan\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/freetype2 -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libeplayer3/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libmmeimage -I"$HOME"/flashimg/$SRCDIR/titan  -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/BUILDGIT/checkout_"$STM"/apps/titan/libdreamdvd -DSH4 -DEPLAYER3 -Deplayer3 -DDVDPLAYER -Os -export-dynamic -Wall -Wno-unused-but-set-variable -pipe -Os -MT titan-titan.o -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
273/bin/sh "$HOME"/flashimg/BUILDGIT/checkout_$STM/apps/titan/titan/libtool --tag=CC   --mode=link "$HOME"/flashimg/BUILDGIT/checkout_$STM/tufsbox/devkit/sh4/bin/sh4-linux-gcc -DSH4 -Deplayer3 -DDVDPLAYER -Os $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -pipe -Os  -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib -L/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/lib -L/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib -o titan titan.o -lpthread -ldl -lpng -lfreetype -leplayer3 -ldreamdvd -ljpeg -lmmeimage -lmme_host
274cp "$HOME"/flashimg/$SRCDIR/titan/.libs/titan "$HOME"/flashimg/$SRCDIR/titan
275"$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tufsbox/cross/bin/sh4-linux-strip titan
276
277echo "[titan]--------------------------------------------------------"
278echo "[titan] titan done"
279echo "[titan]--------------------------------------------------------"
280
281if [ "$SRCDIR" = "source.titan.building" ]; then exit 1; fi
282
283rm -rf "$HOME"/flashimg/BUILD/titan
284rm -rf "$HOME"/flashimg/BUILD/titan-smal
285
286if [ ! -e ./titan ]; then
287    echo "[titan]--------------------------------------------------------"
288    echo "[titan] building error !!!"
289    echo "[titan] check your src"
290    echo "[titan]--------------------------------------------------------"
291    touch "$HOME"/flashimg/.ipk-build-error
292    exit 1
293fi
294
295echo "[titan]--------------------------------------------------------"
296echo "[titan] Make TPK Binary"
297echo "[titan]--------------------------------------------------------"
298
299rm -rf "$HOME"/flashimg/$SRCDIR/tpk/tpk
300"$HOME"/flashimg/$SRCDIR/tpk/make.sh $SRCDIR
301
302if [ ! -e "$HOME"/flashimg/$SRCDIR/tpk/tpk ]; then
303    echo "[titan]--------------------------------------------------------"
304    echo "[titan] building error !!!"
305    echo "[titan] check your src"
306    echo "[titan]--------------------------------------------------------"
307    touch "$HOME"/flashimg/.ipk-build-error
308    exit 1
309fi
310
311echo "[titan]--------------------------------------------------------"
312echo "[titan] TPK done"
313echo "[titan]--------------------------------------------------------"
314
315echo "[titan]--------------------------------------------------------"
316echo "[titan] Make Plugins"
317echo "[titan]--------------------------------------------------------"
318"$HOME"/flashimg/$SRCDIR/plugins/makesh4.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO" "$ARCH" "$SRCDIR"
319echo "[titan]--------------------------------------------------------"
320echo "[titan] Plugins done"
321echo "[titan]--------------------------------------------------------"
322
323echo "[titan]--------------------------------------------------------"
324echo "[titan] Update Language Po files"
325echo "[titan]--------------------------------------------------------"
326"$HOME"/flashimg/$SRCDIR/titan/tools/createpo.sh "$SVNUSER" "$GROUP" $SRCDIR $TYPE $CREATE
327echo "[titan]--------------------------------------------------------"
328echo "[titan] Update Language Po files done"
329echo "[titan]--------------------------------------------------------"
330
331#echo "[titan]--------------------------------------------------------"
332#echo "[titan] Make Language Po files"
333#echo "[titan]--------------------------------------------------------"
334#"$HOME"/flashimg/$SRCDIR/po/de/LC_MESSAGES/make.sh "$STM"
335#"$HOME"/flashimg/$SRCDIR/po/fr/LC_MESSAGES/make.sh "$STM"
336#"$HOME"/flashimg/$SRCDIR/po/gr/LC_MESSAGES/make.sh "$STM"
337#"$HOME"/flashimg/$SRCDIR/po/it/LC_MESSAGES/make.sh "$STM"
338#"$HOME"/flashimg/$SRCDIR/po/nl/LC_MESSAGES/make.sh "$STM"
339#"$HOME"/flashimg/$SRCDIR/po/pl/LC_MESSAGES/make.sh "$STM"
340#"$HOME"/flashimg/$SRCDIR/po/ru/LC_MESSAGES/make.sh "$STM"
341#"$HOME"/flashimg/$SRCDIR/po/vn/LC_MESSAGES/make.sh "$STM"
342#"$HOME"/flashimg/$SRCDIR/po/en/LC_MESSAGES/make.sh "$STM"
343
344echo "[titan]--------------------------------------------------------"
345echo "[titan] Language Po files done"
346echo "[titan]--------------------------------------------------------"
347
348mkdir -p "$HOME"/flashimg/BUILD/titan/var/etc/titan
349mkdir -p "$HOME"/flashimg/BUILD/titan/var/etc/codepages
350mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/lib
351mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
352mkdir -p "$HOME"/flashimg/BUILD/titan/usr/local/bin
353mkdir -p "$HOME"/flashimg/BUILD/titan/sbin
354mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
355mkdir -p "$HOME"/flashimg/BUILD/titan/usr/sbin
356mkdir -p "$HOME"/flashimg/BUILD/titan/usr/bin
357mkdir -p "$HOME"/flashimg/BUILD/titan/usr/lib
358mkdir -p "$HOME"/flashimg/BUILD/titan/usr/share
359mkdir -p "$HOME"/flashimg/BUILD/titan/lib
360mkdir -p "$HOME"/flashimg/BUILD/titan/modules
361
362PLIST=`ls -1 "$HOME"/flashimg/$SRCDIR/plugins`
363
364for ROUND in $PLIST;do
365    if [ "$ROUND" == "makesh4.sh" ]; then
366        skiped=1
367    else
368        echo "[titan] copy plugins/$ROUND"
369        cp -a "$HOME"/flashimg/$SRCDIR/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
370    fi
371done
372
373cp -a "$HOME"/flashimg/$SRCDIR/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
374cp -a "$HOME"/flashimg/$SRCDIR/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
375cat "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.sh4.cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.all.cfg | sort -u > "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
376sed 's/&/\\&/g' -i "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
377rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.*.cfg
378
379mkdir "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
380cp -a "$HOME"/flashimg/$SRCDIR/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
381cp -a "$HOME"/flashimg/$SRCDIR/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
382cp -a "$HOME"/flashimg/$SRCDIR/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
383cp titan "$HOME"/flashimg/BUILD/titan/usr/local/bin
384chmod 755 "$HOME"/flashimg/BUILD/titan/usr/local/bin/titan
385cp -a "$HOME"/flashimg/$SRCDIR/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
386cp -a "$HOME"/flashimg/$SRCDIR/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
387cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.html
388rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.*.html
389cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc."$TYPE".png "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc.png
390rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc.*.png
391cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual."$TYPE".png "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual.png
392rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual.*.png
393cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual.html
394rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual.*.html
395#cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index.html
396rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index.*.html
397
398cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.mvi
399rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.*.mvi
400cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.mvi
401rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.*.mvi
402cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.mvi
403rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.*.mvi
404cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo.mvi
405rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo.*.mvi
406cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.mvi
407rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.*.mvi
408cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.mvi
409rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*.mvi
410rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgDVD.*
411rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgRadio.*
412rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgRSS.*
413#rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.*
414rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVLC.*
415rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*
416
417#if [ "$TYPE" == "ufs910" ] || [ "$TYPE" == "ufs922" ];then
418#   rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.*
419#   rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.*
420#   rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.*
421#   rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.*
422#   rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*
423#
424#   cd "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/
425#   ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.mvi
426#   ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.mvi
427#   ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.mvi
428#   ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.mvi
429#   ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.mvi
430#   cd "$HOME"/flashimg/$SRCDIR/titan
431#fi
432
433cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/nsfb "$HOME"/flashimg/BUILD/titan/usr/bin
434cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
435cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Aliases "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
436cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/*.css "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
437cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/messages "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
438
439rm -f "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
440ln -s /mnt/config/choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
441
442#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/libipkg.so.0.0.0 "$HOME"/flashimg/BUILD/titan/lib/libipkg.so.0
443#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/ipkg-cl "$HOME"/flashimg/BUILD/titan/usr/bin/ipkg
444
445# minidlna
446cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/sbin/minidlna "$HOME"/flashimg/BUILD/titan/usr/bin
447cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libexif.so* "$HOME"/flashimg/BUILD/titan/lib
448cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libvorbis.so* "$HOME"/flashimg/BUILD/titan/lib
449
450if [ $MEDIAFW = 2 ];then
451    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libavcodec.so* "$HOME"/flashimg/BUILD/titan/lib
452    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libavformat.so* "$HOME"/flashimg/BUILD/titan/lib
453    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libavutil.so* "$HOME"/flashimg/BUILD/titan/lib
454elif [ $MEDIAFW = 1 ];then
455    #directfb
456    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/directfb-1.4-5 "$HOME"/flashimg/BUILD/titan/usr/lib
457    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libdirectfb* "$HOME"/flashimg/BUILD/titan/usr/lib
458
459    #gst
460    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/gstreamer-0.10 "$HOME"/flashimg/BUILD/titan/usr/lib
461    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgst* "$HOME"/flashimg/BUILD/titan/usr/lib
462    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libdirect* "$HOME"/flashimg/BUILD/titan/usr/lib
463    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libfusion* "$HOME"/flashimg/BUILD/titan/usr/lib
464    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libglib* "$HOME"/flashimg/BUILD/titan/usr/lib
465    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgmodule* "$HOME"/flashimg/BUILD/titan/usr/lib
466    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgobject* "$HOME"/flashimg/BUILD/titan/usr/lib
467    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgthread* "$HOME"/flashimg/BUILD/titan/usr/lib
468
469    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libasound* "$HOME"/flashimg/BUILD/titan/usr/lib
470    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libFLAC* "$HOME"/flashimg/BUILD/titan/usr/lib
471    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgio* "$HOME"/flashimg/BUILD/titan/usr/lib
472    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libogg* "$HOME"/flashimg/BUILD/titan/usr/lib
473    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libixml* "$HOME"/flashimg/BUILD/titan/usr/lib
474    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libsoup* "$HOME"/flashimg/BUILD/titan/usr/lib
475    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libthreadutil* "$HOME"/flashimg/BUILD/titan/usr/lib
476
477    mkdir "$HOME"/flashimg/BUILD/titan/usr/lib-all
478    find "$HOME"/flashimg/BUILD/titan/usr/lib -maxdepth 1 -type f \( ! -iname ".*" \) -exec cp {} "$HOME/flashimg/BUILD/titan/usr/lib-all/" \; 
479    rm -rf `find "$HOME"/flashimg/BUILD/titan/usr/lib-all -type f -name "*.a"`
480    rm -rf `find "$HOME"/flashimg/BUILD/titan/usr/lib-all -type f -name "*.la"`
481
482    rm -rf "$HOME"/flashimg/BUILD/titan/usr/lib/lib*
483    list=`ls -1 "$HOME"/flashimg/BUILD/titan/usr/lib-all`
484    for ROUND in $list; do
485        dest=`echo $ROUND | sed -e 's/.\{4\}$//'`
486        echo cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/$ROUND "$HOME"/flashimg/BUILD/titan/usr/lib/$dest
487#       cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/$ROUND "$HOME"/flashimg/BUILD/titan/usr/lib/$dest
488    done
489    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libasound.so.2.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libasound.so.2
490    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libdirect-1.4.so.5.0.6 "$HOME"/flashimg/BUILD/titan/usr/lib/libdirect-1.4.so.5
491    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libdirectfb-1.4.so.5.0.6 "$HOME"/flashimg/BUILD/titan/usr/lib/libdirectfb-1.4.so.5
492    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libFLAC.so.8.2.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libFLAC.so.8
493    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libfusion-1.4.so.5.0.6 "$HOME"/flashimg/BUILD/titan/usr/lib/libfusion-1.4.so.5
494    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgio-2.0.so.0.2800.3 "$HOME"/flashimg/BUILD/titan/usr/lib/libgio-2.0.so.0
495    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libglib-2.0.so.0.2800.3 "$HOME"/flashimg/BUILD/titan/usr/lib/libglib-2.0.so.0
496    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgmodule-2.0.so.0.2800.3 "$HOME"/flashimg/BUILD/titan/usr/lib/libgmodule-2.0.so.0
497    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgobject-2.0.so.0.2800.3 "$HOME"/flashimg/BUILD/titan/usr/lib/libgobject-2.0.so.0
498    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstapp-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstapp-0.10.so.0
499    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstaudio-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstaudio-0.10.so.0
500    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstbase-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstbase-0.10.so.0
501    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstbasecamerabinsrc-0.10.so.0.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstbasecamerabinsrc-0.10.so.0
502    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstbasevideo-0.10.so.0.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstbasevideo-0.10.so.0
503    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstcdda-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstcdda-0.10.so.0
504    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstcheck-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstcheck-0.10.so.0
505    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstcodecparsers-0.10.so.0.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstcodecparsers-0.10.so.0
506    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstcontroller-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstcontroller-0.10.so.0
507    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstdataprotocol-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstdataprotocol-0.10.so.0
508    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstfft-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstfft-0.10.so.0
509    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstinterfaces-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstinterfaces-0.10.so.0
510    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstnet-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstnet-0.10.so.0
511    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstnetbuffer-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstnetbuffer-0.10.so.0
512    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstpbutils-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstpbutils-0.10.so.0
513    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstphotography-0.10.so.0.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstphotography-0.10.so.0
514    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstreamer-0.10.so.0.30.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstreamer-0.10.so.0
515    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstriff-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstriff-0.10.so.0
516    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstrtp-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstrtp-0.10.so.0
517    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstrtsp-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstrtsp-0.10.so.0
518    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstsdp-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstsdp-0.10.so.0
519    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstsignalprocessor-0.10.so.0.0.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstsignalprocessor-0.10.so.0
520    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgsttag-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgsttag-0.10.so.0
521    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgstvideo-0.10.so.0.25.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libgstvideo-0.10.so.0
522    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libgthread-2.0.so.0.2800.3 "$HOME"/flashimg/BUILD/titan/usr/lib/libgthread-2.0.so.0
523    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libixml.so.2.0.7 "$HOME"/flashimg/BUILD/titan/usr/lib/libixml.so.2
524    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libogg.so.0.7.1 "$HOME"/flashimg/BUILD/titan/usr/lib/libogg.so.0
525    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libsoup-2.4.so.1.3.0 "$HOME"/flashimg/BUILD/titan/usr/lib/libsoup-2.4.so.1
526    cp "$HOME"/flashimg/BUILD/titan/usr/lib-all/libthreadutil.so.6.0.2 "$HOME"/flashimg/BUILD/titan/usr/lib/libthreadutil.so.6
527
528    rm -rf "$HOME"/flashimg/BUILD/titan/usr/lib-all
529else
530    #directfb
531    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/directfb-1.4-5 "$HOME"/flashimg/BUILD/titan/usr/lib
532    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libdirectfb* "$HOME"/flashimg/BUILD/titan/usr/lib
533   
534    #gst
535    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/gstreamer-0.10 "$HOME"/flashimg/BUILD/titan/usr/lib
536    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgst* "$HOME"/flashimg/BUILD/titan/usr/lib
537    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libdirect* "$HOME"/flashimg/BUILD/titan/usr/lib
538    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libfusion* "$HOME"/flashimg/BUILD/titan/usr/lib
539    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libglib* "$HOME"/flashimg/BUILD/titan/usr/lib
540    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgmodule* "$HOME"/flashimg/BUILD/titan/usr/lib
541    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgobject* "$HOME"/flashimg/BUILD/titan/usr/lib
542    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgthread* "$HOME"/flashimg/BUILD/titan/usr/lib
543
544    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libasound* "$HOME"/flashimg/BUILD/titan/usr/lib
545    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libFLAC* "$HOME"/flashimg/BUILD/titan/usr/lib
546    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libgio* "$HOME"/flashimg/BUILD/titan/usr/lib
547    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libogg* "$HOME"/flashimg/BUILD/titan/usr/lib
548    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libixml* "$HOME"/flashimg/BUILD/titan/usr/lib
549    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libsoup* "$HOME"/flashimg/BUILD/titan/usr/lib
550    cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libthreadutil* "$HOME"/flashimg/BUILD/titan/usr/lib
551
552    ln -s /var/swap/lib/gstreamer-0.10 "$HOME"/flashimg/BUILD/titan/var/usr/lib/gstreamer-0.10
553    ln -s /var/swap/lib/directfb-1.4-5 "$HOME"/flashimg/BUILD/titan/var/usr/lib/directfb-1.4-5
554fi
555
556#gmediarender
557#cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
558cp -a "$HOME"/flashimg/$SRCDIR/gmediarender/src/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
559cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libupnp.so.6.3.1 "$HOME"/flashimg/BUILD/titan/usr/lib/libupnp.so.6
560cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/share/gmediarender "$HOME"/flashimg/BUILD/titan/usr/share
561
562#new net tools
563cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/djmount "$HOME"/flashimg/BUILD/titan/sbin
564# rarfs last version not working eplayer has playback error
565#cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/rarfs "$HOME"/flashimg/BUILD/titan/sbin
566cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/curlftpfs "$HOME"/flashimg/BUILD/titan/sbin
567cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/sshfs "$HOME"/flashimg/BUILD/titan/sbin
568cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libcurl.so* "$HOME"/flashimg/BUILD/titan/lib
569cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libfuse.so* "$HOME"/flashimg/BUILD/titan/lib
570
571# ffmpeg
572cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/ffmpeg "$HOME"/flashimg/BUILD/titan/sbin
573cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/jpegtran "$HOME"/flashimg/BUILD/titan/sbin
574
575# wlan
576cp -a "$ROOTDIR"/lib/modules/8192cu.ko "$HOME"/flashimg/BUILD/titan/modules
577cp -a "$ROOTDIR"/lib/modules/8712u.ko "$HOME"/flashimg/BUILD/titan/modules
578cp -a "$ROOTDIR"/lib/modules/rt2870sta.ko "$HOME"/flashimg/BUILD/titan/modules
579cp -a "$ROOTDIR"/lib/modules/rt3070sta.ko "$HOME"/flashimg/BUILD/titan/modules
580cp -a "$ROOTDIR"/lib/modules/rt5370sta.ko "$HOME"/flashimg/BUILD/titan/modules
581
582#ipkg
583#cp -a "$HOME"/flashimg/$SRCDIR/ipkg "$HOME"/flashimg/BUILD/titan/var/usr/lib
584#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/status
585#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/info/*.control
586
587#crypt
588"$HOME"/flashimg/$SRCDIR/titan/tools/ocrypt -c "$HOME"/flashimg/$SRCDIR/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
589
590rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.svn"`
591rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.deps"`
592rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.libs"`
593rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.h"`
594rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.c"`
595rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.o"`
596rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.po"`
597rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.a"`
598rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.la"`
599rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.lo"`
600rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.Tpo"`
601rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "make.sh"`
602rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "Makefile.am"`
603
604rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/networkbrowser/netlib
605rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/tithek/menu
606rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/tithek/tithekmainmenu
607
608cp -a "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan."$TYPE".cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan.cfg
609cp -a "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan."$TYPE1".cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan.cfg
610rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan.*.cfg
611
612cp -a "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig."$TYPE" "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig
613rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig.*
614
615rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skin/*_grid.png
616# mc grid filelist pngs
617#rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skin/*_grid_*.png
618
619cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skinconfig "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/skinconfig
620
621cp -a "$HOME"/flashimg/BUILD/titan "$HOME"/flashimg/BUILD/titan-smal
622rm -rf "$HOME"/flashimg/BUILD/titan-smal/var/usr/local/share/titan/picons
623rm -rf "$HOME"/flashimg/BUILD/titan-smal/var/etc/titan/titan.cfg
624
625echo "[titan]--------------------------------------------------------"
626echo "[titan] building to: "$HOME"/flashimg/BUILD/titan"
627echo "[titan] copy this folder to duckbox: /var/usr/local/share/titan"
628echo "[titan]--------------------------------------------------------"
Note: See TracBrowser for help on using the repository browser.