source: ipk/make-ipk @ 15611

Last change on this file since 15611 was 15473, checked in by obi, 9 years ago

fix

  • Property svn:executable set to *
File size: 17.3 KB
Line 
1#!/bin/sh
2HOMEDIR=`pwd`
3TMP=.tmp
4NEXT_LIST=.tmp2
5
6GROUP=$1
7SVNUSER=$2
8SVNPASS=$3
9SVNURL=$4
10MAKETYPE=$5
11CPUTYPE=$6
12SWTYPE=$7
13
14if [ ! -e "$HOMEDIR"/.firstrun ]; then
15        echo "[make-ipk] first run remove old ipkg-build and ipkg-make-index links"
16        sudo rm /bin/ipkg-build
17        sudo rm /sbin/ipkg-build
18        sudo rm /bin/ipkg-make-index
19        sudo rm /sbin/ipkg-make-index
20        touch "$HOMEDIR"/.firstrun
21fi
22
23if [ `which ipkg-build | wc -l` -eq 0 ]; then
24        sudo ln -s $HOMEDIR/ipkg-utils-050831/ipkg-build /bin
25fi
26if [ `which ipkg-make-index | wc -l` -eq 0 ]; then
27        sudo ln -s $HOMEDIR/ipkg-utils-050831/ipkg-make-index /bin
28fi
29if [ `which gzip | wc -l` -eq 0 ]; then
30        echo "[make-ipk] install gzip"
31        echo "[make-ipk] apt-get install gzip"
32        exit
33elif [ `which python2.6 | wc -l` -eq 0 ]; then
34        echo "[make-ipk] install python2.6 | search python2.6_2.6.1-1_i386.deb"
35        exit
36elif [ `which wput | wc -l` -eq 0 ]; then
37        echo "[make-ipk] install wput v0.6.2"
38        echo "[make-ipk] apt-get install wput"
39        exit
40fi
41
42if [ "$MAKETYPE" = "online" ];then
43        WPUTCHECK=`wput --version | tr " " "\n" | tail -n1 | sed 's/\.//' | sed 's/\.//'`
44        echo WPUTCHECK $WPUTCHECK
45        if [ "$WPUTCHECK" -gt "061" ]; then
46                echo "[make-ipk] wput0.6.2 ok"
47        else
48                echo "[make-ipk] install wput0.6.2"
49                echo "[make-ipk] cd /src"
50                echo "[make-ipk] wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/wput-0.6.2.tar.gz"
51                echo "[make-ipk] tar -zxvf wput-0.6.2.tar.gz"
52                echo "[make-ipk] cd wput-0.6.2"
53                echo "[make-ipk] ./configure"
54                echo "[make-ipk] make"
55                echo "[make-ipk] make install"
56                exit
57        fi
58fi
59
60if [ $# -ne 7 ]; then
61        echo "|---------------------------------------------------------------------------------------------|"
62        echo "|                                                                                             |"
63        echo "| IPK Make Script                                                                             |"
64        echo "|                                                                                             |"
65        echo '| use ./make-ipk <group> <svnuser> <svnpass> <svnurl> <maketype> <cputype> <swtype>           |'
66        echo "|                                                                                             |"
67        echo "| for group <dev|update|secret|atemio|feeds>                                                  |"
68        echo "| for svnuser <your>                                                                          |"
69        echo "| for svnpass <your>                                                                          |"
70        echo "| for svnurl <your>                                                                           |"
71        echo "| for maketype <online|offline|onlinebeta>                                                    |"
72        echo "| for cputype <sh4|mipsel>                                                                    |"
73        echo "| for swtype <enigma2|neutrino|titan>                                                         |"
74        echo "|                                                                                             |"
75        echo "|---------------------------------------------------------------------------------------------|"
76        echo "|                                                                            v2.1@dev-team    |"
77        echo "|---------------------------------------------------------------------------------------------|"
78        exit 1
79fi
80
81if [ $GROUP = "dev" ] || [ $GROUP = "update" ] || [ $GROUP = "secret" ] || [ $GROUP = "atemio" ] || [ $CPUTYPE = "feeds" ];then
82        echo "[make-ipk] group=$GROUP"
83else
84        echo "[make-ipk] group <dev|update|secret|atemio|feeds>"
85        exit 1
86fi
87
88if [ $MAKETYPE = "online" ] || [ $MAKETYPE = "offline" ] || [ $MAKETYPE = "onlinebeta" ];then
89        echo "[make-ipk] maketype=$MAKETYPE"
90else
91        echo "[make-ipk] maketype <online|offline|onlinebeta>"
92        exit 1
93fi
94
95if [ $CPUTYPE = "sh4" ] || [ $CPUTYPE = "mipsel" ];then
96        echo "[make-ipk] cputype=$CPUTYPE"
97else
98        echo "[make-ipk] cputype <sh4|mipsel>"
99        exit 1
100fi
101
102if [ $SWTYPE = "enigma2" ] || [ $SWTYPE = "neutrino" ] || [ $SWTYPE = "titan" ];then
103        echo "[make-ipk] swtype=$SWTYPE"
104else
105        echo "[make-ipk] swtype <enigma2|neutrino|titan>"
106        exit 1
107fi
108
109rm -rf "$HOMEDIR"/BUILD
110rm -rf "$HOMEDIR"/BUILDRELEASE
111
112rm -rf "$HOMEDIR"/preview
113rm -rf "$HOMEDIR"/config
114rm -rf "$HOMEDIR"/scripts
115
116mkdir -p "$HOMEDIR"/BUILD
117mkdir -p "$HOMEDIR"/BUILDRELEASE
118
119svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/image/scripts $HOMEDIR/scripts
120svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/image/config $HOMEDIR/config
121
122. ./config/make-config
123       
124#if [ $GROUP = "dev" ];then
125#       WWWMAIN="beta"
126#elif [ $GROUP = "secret" ]; then
127#       WWWMAIN="svn/ipk"
128#elif [ $GROUP = "atemio" ]; then
129#       WWWMAIN="svn/atemio"
130#else
131#       WWWMAIN="public"
132#fi
133
134WWWPUBLIC="ipk"
135
136ls -1 "$HOMEDIR"/source > aaf-flashbeta.txt
137ls -1 "$HOMEDIR"/source."$CPUTYPE" >> aaf-flashbeta.txt
138
139LIST_LINE=`cat aaf-flashbeta.txt`
140if [ $GROUP = "secret" ]; then
141        ALLOWED=`cat "$HOMEDIR"/trustlist_secret_"$CPUTYPE"_"$SWTYPE"`
142elif [ $GROUP = "atemio" ]; then
143        ALLOWED=`cat "$HOMEDIR"/trustlist_atemio_"$CPUTYPE"_"$SWTYPE"`
144else
145        ALLOWED=`cat "$HOMEDIR"/trustlist_allowed_"$CPUTYPE"_"$SWTYPE"`
146fi
147
148if [ $GROUP != "feeds" ];then
149        for DIR in $ALLOWED; do
150                echo cp "$DIR"_*
151                cp -a "$HOMEDIR"/source/"$DIR"_* "$HOMEDIR"/BUILD
152        done
153
154        for DIR in $ALLOWED; do
155                echo cp "$DIR"_*
156                cp -a "$HOMEDIR"/source."$CPUTYPE"/"$DIR"_* "$HOMEDIR"/BUILD
157        done
158else
159        for DIR in $ALLOWED; do
160                echo cp "$DIR"_*
161                cp -a "$HOMEDIR"/source.feeds/"$DIR"_* "$HOMEDIR"/BUILD
162        done
163fi
164
165if [ $SWTYPE = "titan" ] && [ $SVNUSER = "aafsvn" ];then
166        # titanplayers
167        #       cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/* "$HOMEDIR"/BUILD/titanplayers_mc/var/usr/local/share/titan/plugins/mc
168        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/imdb/* "$HOMEDIR"/BUILD/titanplayers_imdb/var/usr/local/share/titan/plugins/imdb
169        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/dvdplayer/* "$HOMEDIR"/BUILD/titanplayers_dvdplayer/var/usr/local/share/titan/plugins/dvdplayer
170        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/tithek/* "$HOMEDIR"/BUILD/titanplayers_tithek/var/usr/local/share/titan/plugins/tithek
171
172        # titantools
173        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/keylock/* "$HOMEDIR"/BUILD/titantools_keylock/var/usr/local/share/titan/plugins/keylock
174        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/permtime/* "$HOMEDIR"/BUILD/titantools_PermanentTime/var/usr/local/share/titan/plugins/permtime
175        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/stopifnotused/* "$HOMEDIR"/BUILD/titantools_stopifnotused/var/usr/local/share/titan/plugins/stopifnotused
176        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/rgui/* "$HOMEDIR"/BUILD/titantools_rgui/var/usr/local/share/titan/plugins/rgui
177        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/scriptexec/* "$HOMEDIR"/BUILD/titantools_scriptexec/var/usr/local/share/titan/plugins/scriptexec
178
179        # titannetwork
180        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/networkbrowser/* "$HOMEDIR"/BUILD/titannetwork_networkbrowser/var/usr/local/share/titan/plugins/networkbrowser
181        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/dlna/* "$HOMEDIR"/BUILD/titannetwork_dlna/var/usr/local/share/titan/plugins/dlna
182
183        # titanbrowser
184        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/browser/* "$HOMEDIR"/BUILD/titanbrowser_netsurf/var/usr/local/share/titan/plugins/browser
185
186        # titanswaptools
187        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/lcdpearl1/* "$HOMEDIR"/BUILD/titanswaptools_lcdpearl1/var/swap/titanplugins/lcdpearl1
188        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/callmonitor1/* "$HOMEDIR"/BUILD/titanswaptools_callmonitor/var/swap/titanplugins/callmonitor1
189
190        # titangames
191        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/wins3/* "$HOMEDIR"/BUILD/titangames_wins3/var/usr/local/share/titan/plugins/wins3
192
193        # titaninfos
194        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/callmonitor1/* "$HOMEDIR"/BUILD/titaninfos_callmonitor/var/usr/local/share/titan/plugins/callmonitor1
195        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/news/* "$HOMEDIR"/BUILD/titaninfos_news/var/usr/local/share/titan/plugins/news
196        cp -a $HOME/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/weather/* "$HOMEDIR"/BUILD/titaninfos_weather/var/usr/local/share/titan/plugins/weather
197fi
198
199if [ $CPUTYPE = "mipsel" ];then
200        rm -r "$HOMEDIR"/BUILD/*/CONTROL/pre*
201        sed -i 's/sh4/mipsel/g' "$HOMEDIR"/BUILD/*/CONTROL/control
202fi
203
204#cp -a "$HOMEDIR"/bootvideos "$HOMEDIR"/BUILDRELEASE/boot
205cd "$HOMEDIR"/BUILD     
206
207if [ $SWTYPE = "titan" ] && [ $SVNUSER = "aafsvn" ];then
208        # titan work start
209        rm -rf browsers_picasa
210        rm -rf browsers_elektro_1_0
211        rm -rf browsers_werbezapper_1_0
212        rm -rf browsers_zaphistorybrowser_1_2
213        rm -rf swapnetwork_webif
214        rm -rf swapnetwork_wlan_300
215        rm -rf swapnetwork_wlan_400
216        rm -rf swapnetwork_libsmbclient_3_0_28b
217fi
218
219# titan work done
220
221ls -1 "$HOMEDIR"/BUILD > $NEXT_LIST
222
223LIST=`cat $NEXT_LIST`
224echo LIST: $LIST
225
226rm -rf `find "$HOMEDIR"/BUILD -type d -name "*.svn"`
227sed -i "s/Package: enigma2-plugin-/Package: $SWTYPE-plugin-/g" "$HOMEDIR"/BUILD/*/CONTROL/control
228
229echo "[make-ipk] set executable Folder rights 755 to CONTROL bin sbin emu"
230chmod -R 755 `find "$HOMEDIR"/BUILD -type d -name "CONTROL"` > /dev/null 2>&1
231chmod -R 755 `find "$HOMEDIR"/BUILD -type d -name "bin"` > /dev/null 2>&1
232chmod -R 755 `find "$HOMEDIR"/BUILD -type d -name "sbin"` > /dev/null 2>&1     
233chmod -R 755 `find "$HOMEDIR"/BUILD -type d -name "emu"` > /dev/null 2>&1
234
235###################  SHRINK PYTHON FILES  #########################
236
237"$HOMEDIR"/scripts/kf-pyshrink.sh ./ "$HOMEDIR"/BUILD "$PYTHONVER" "$SKIPPEDSHRINK"
238
239###
240#cd $HOMEDIR
241echo make py var
242ls -R -1 "$HOMEDIR"/BUILD | grep "/" | sed 's/.$//' > tmp.txt
243LINE=`cat tmp.txt`
244for DIR in $LINE; do
245        cd $HOMEDIR
246        cd $DIR
247        echo "[make-ipk] dir $DIR"
248        ls -1 *.py > "$HOMEDIR"/pylist.tmp
249        PYLINE=`cat "$HOMEDIR"/pylist.tmp`
250        for RPY in $PYLINE; do
251                python2.6 -OO "$HOMEDIR"/scripts/mkpyc.py $RPY
252                PYO=`echo "$RPY" | sed "s/.py$/.pyo/"`
253                PYC=`echo "$RPY" | sed "s/.py$/.pyc/"`
254                if [ $CPUTYPE = "sh4" ];then
255                        mv $PYO $PYC
256                elif [ $CPUTYPE = "mipsel" ];then
257                        mv $PYC $PYO
258                fi
259                if [ $? -ne 0 ]; then
260                        echo "[make-ipk] Fehler beim kompilieren $RPY"
261                fi
262        done
263done
264cd $HOMEDIR
265###
266rm "$HOMEDIR"/pylist.tmp
267rm -rf `find "$HOMEDIR"/BUILD -type f -name "*.py" -print`
268if [ $CPUTYPE = "sh4" ];then
269        rm -rf `find "$HOMEDIR"/BUILD -type f -name "*.pyo" -print`
270elif [ $CPUTYPE = "mipsel" ];then
271        rm -rf `find "$HOMEDIR"/BUILD -type f -name "*.pyc" -print`
272fi
273
274rm -rf "$HOMEDIR"/preview
275mkdir "$HOMEDIR"/preview
276
277###################  SHRINK PNG FILES  #########################
278
279PNGFILES=`find "$HOMEDIR"/BUILD -type f -name "*.png" -print`
280
281for DIR in $PNGFILES; do
282        echo "[make-ipk] PNG: $DIR"
283        /usr/bin/advpng -4 -z $DIR #> /dev/null 2>&1
284#       /usr/bin/advpng -4 -z $DIR #> /dev/null 2>&1
285done
286
287###################  STRIPPED ALL FILES  #########################
288if [ $CPUTYPE = "sh4" ];then
289        FILEALL=`find "$HOMEDIR"/BUILD -name "*" -print`
290
291        if ( test -f ../flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-strip ); then
292                echo ""
293                echo "[make-ipk] Files strippen"
294                echo ""
295                for FILE in $FILEALL
296                do
297                        echo $FILE | grep ".ko" >/dev/null 2>&1
298                        if [ $? -eq 0 ]; then param="--strip-unneeded --remove-section=.comment"; else param="-s --remove-section=.comment"; fi
299                        ../flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-strip $param $FILE > /dev/null 2>&1
300                        if [ $? -eq 0 ]; then
301                                echo "[make-ipk] Strippe: $FILE"
302                        fi
303                done
304        else
305                echo ""
306                echo "[make-ipk] Files strippen konnte nicht durchgefuehrt werden, da sh4-linux-strip fehlt."
307        fi
308fi
309
310for DIR in $LIST; do
311        echo "[make-ipk] $DIR"
312        NAME=`cat "$HOMEDIR"/BUILD/"$DIR"/CONTROL/control | grep Package: | tr " " "\n" | tr "-" "\n" | tail -n 1 | cut -d . -f1 | head -n1`
313#       ARCH=`cat "$HOMEDIR"/BUILD/"$DIR"/CONTROL/control | grep Architecture: | tr " " "\n" | tail -n 1`
314#       cp "$HOMEDIR"/BUILD/"$DIR"/preview/prev.png "$HOMEDIR"/preview/enigma2-pluginpreview-"$NAME"_"$ARCH".ipk.png
315        cp "$HOMEDIR"/BUILD/"$DIR"/preview/prev.png "$HOMEDIR"/preview/"$SWTYPE"-pluginpreview-"$NAME".png
316        rm -r "$HOMEDIR"/BUILD/"$DIR"/preview
317done
318
319
320cd "$HOMEDIR"/BUILDRELEASE
321
322for DIR in $LIST; do
323        ipkg-build "$HOMEDIR"/BUILD/"$DIR"
324done
325
326date=`date`
327echo "[make-ipk] make-index"
328rm Packages*
329 
330ipkg-make-index -l Packages.filelist -p Packages -v .
331
332if [ $GROUP = "secret" ]; then
333        echo "Here is the secret AAF-Flash-PlugList" > PlugList
334elif [ $GROUP = "beta" ]; then
335        echo "Here is the beta AAF-Flash-PlugList" > PlugList
336else
337        echo "Here is the public AAF-Flash-PlugList" > PlugList
338fi
339
340echo "" >> PlugList
341cat Packages | grep Filename: | sed "s/Filename: $SWTYPE-plugin-//" | sed "s/.ipk//" | sed "s/_sh4//" | sed "s/_/ V/" >> PlugList
342rm test.txt
343echo "" >> PlugList
344echo "mfg AAF-TEAM @ $date" >> PlugList
345echo "done"
346
347rm .tmp*
348rm tmprc
349
350cd "$HOMEDIR"
351tar czvf Packages.preview.tar.gz ./preview
352
353mv "$HOMEDIR"/Packages.preview.tar.gz "$HOMEDIR"/BUILDRELEASE
354
355cd "$HOMEDIR"/BUILDRELEASE
356
357FULLLIST=`ls -1`
358PACKAGESLIST=`ls -1 Packages*`
359IPKLIST=`ls -1 *.ipk`
360
361if [ $GROUP = "update" ] && [ "$SVNUSER" = "aafsvn" ] && [ "$SWTYPE" = "titan" ];then
362        COUNT=`cat "$HOMEDIR"/.count`
363        IPKGCROSS_RELEASE=atemio510-rev$COUNT
364        WWWMAIN="$WWWMAIN"/"$WWWATEMIOSECRET"
365elif [ $GROUP = "secret" ] && [ "$SVNUSER" = "aafsvn" ] && [ "$SWTYPE" = "titan" ];then
366        COUNT=`cat "$HOMEDIR"/.count`
367        IPKGCROSS_RELEASE=atemio510-rev$COUNT
368        WWWMAIN="$WWWMAIN"/"$WWWATEMIOSECRET"
369elif [ $GROUP = "secret" ] && [ "$SWTYPE" = "enigma2" ];then
370        WWWMAIN="$WWWMAIN"/"$WWWSECRET"
371elif [ $GROUP = "secret" ] && [ "$SWTYPE" = "neutrino" ];then
372        WWWMAIN="$WWWMAIN"/"$WWWSECRET"
373fi
374
375if [ $GROUP = "update" ] && [ "$SVNUSER" = "aafsvn" ];then
376        rm -rf "$HOMEDIR"/BUILDRELEASE-UPDATE/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE
377        mkdir -p "$HOMEDIR"/BUILDRELEASE-UPDATE/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE             
378
379        for file in $FULLLIST; do
380                if [ -e "$file" ]; then
381                        wputcmd="$file "$HOMEDIR"/BUILDRELEASE-UPDATE/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/$file"
382                        echo "[make-ipk] move: $wputcmd"
383                        mv -f $wputcmd
384                fi
385        done
386elif [ $GROUP = "dev" ] && [ "$SVNUSER" = "aafsvn" ];then
387        rm -rf "$HOMEDIR"/BUILDRELEASE-BETA/$IPKGCROSS_BETA/$CPUTYPE/$SWTYPE
388        mkdir -p "$HOMEDIR"/BUILDRELEASE-BETA/$IPKGCROSS_BETA/$CPUTYPE/$SWTYPE         
389       
390        for file in $FULLLIST; do
391                if [ -e "$file" ]; then
392                        wputcmd="$file "$HOMEDIR"/BUILDRELEASE-BETA/$IPKGCROSS_BETA/$CPUTYPE/$SWTYPE/$file"
393                        echo "[make-ipk] move: $wputcmd"
394                        mv -f $wputcmd
395                fi
396        done
397elif [ $GROUP = "secret" ] && [ "$SVNUSER" = "aafsvn" ] && [ $MAKETYPE = "online" ] && [ "$SWTYPE" = "titan" ];then
398        for ROUND in $PACKAGESLIST; do
399                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/$ROUND"
400                echo "[make-ipk] upload: $wputbin $wputcmd"
401                $wputbin $wputcmd
402        done
403        for ROUND in $IPKLIST; do
404                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/$ROUND"
405                echo "[make-ipk] upload: $wputbin $wputcmd"
406                $wputbin $wputcmd
407        done
408
409        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/PlugList"
410        echo "[make-ipk] upload: $wputbin $wputcmd"
411        $wputbin $wputcmd
412
413        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/Packages.preview.tar.gz"
414        echo "[make-ipk] upload: $wputbin $wputcmd"
415        $wputbin $wputcmd
416       
417        # backup ipks lokal
418        rm -rf "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE
419        mkdir -p "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE             
420
421        for file in $FULLLIST; do
422                if [ -e "$file" ]; then
423                        wputcmd="$file "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/$file"
424                        echo "[make-ipk] move: $wputcmd"
425                        mv -f $wputcmd
426                fi
427        done
428
429elif [ $GROUP = "secret" ] && [ "$SVNUSER" = "aafsvn" ] && [ $MAKETYPE = "online" ];then
430        for ROUND in $PACKAGESLIST; do
431                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$CPUTYPE/$SWTYPE/$ROUND"
432                echo "[make-ipk] upload: $wputbin $wputcmd"
433                $wputbin $wputcmd
434        done
435        for ROUND in $IPKLIST; do
436                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$CPUTYPE/$SWTYPE/$ROUND"
437                echo "[make-ipk] upload: $wputbin $wputcmd"
438                $wputbin $wputcmd
439        done
440
441        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$CPUTYPE/$SWTYPE/PlugList"
442        echo "[make-ipk] upload: $wputbin $wputcmd"
443        $wputbin $wputcmd
444
445        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$CPUTYPE/$SWTYPE/Packages.preview.tar.gz"
446        echo "[make-ipk] upload: $wputbin $wputcmd"
447        $wputbin $wputcmd
448
449        # backup ipks lokal
450        rm -rf "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE
451        mkdir -p "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE             
452
453        for file in $FULLLIST; do
454                if [ -e "$file" ]; then
455                        wputcmd="$file "$HOMEDIR"/BUILDRELEASE-SECRET/$IPKGCROSS_RELEASE/$CPUTYPE/$SWTYPE/$file"
456                        echo "[make-ipk] move: $wputcmd"
457                        mv -f $wputcmd
458                fi
459        done
460elif [ $GROUP = "atemio" ] && [ $MAKETYPE = "online" ];then
461        for ROUND in $PACKAGESLIST; do
462                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$ROUND"
463                echo "[make-ipk] upload: $wputbin $wputcmd"
464                $wputbin $wputcmd
465        done
466        for ROUND in $IPKLIST; do
467                wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/$ROUND"
468                echo "[make-ipk] upload: $wputbin $wputcmd"
469                $wputbin $wputcmd
470        done
471
472        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/PlugList"
473        echo "[make-ipk] upload: $wputbin $wputcmd"
474        $wputbin $wputcmd
475
476        wputcmd="$SECRETRELEASEUPDATEURL/$WWWMAIN/Packages.preview.tar.gz"
477        echo "[make-ipk] upload: $wputbin $wputcmd"
478        $wputbin $wputcmd
479fi
480
481echo "[make-ipk] done"
482exit 0
Note: See TracBrowser for help on using the repository browser.