source: ipk/runipk.sh@ 1653

Last change on this file since 1653 was 1653, checked in by obi, 16 years ago

[ipk] change global code

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/sh
2
3TMP=.tmp
4NEXT_LIST=.tmp2
5
6mkdir -p WWW/boot
7rm WWW/*.ipk > /dev/null 2>&1
8rm WWW/Packages* > /dev/null 2>&1
9rm WWW/PlugList > /dev/null 2>&1
10rm WWW/boot/* > /dev/null 2>&1
11rm Packages* > /dev/null 2>&1
12rm PlugList > /dev/null 2>&1
13rm *.ipk > /dev/null 2>&1
14
15cp -a ~/ipk/source/bootvideos/* ~/ipk/WWW/boot
16
17ls -1 ~/ipk/source > aaf-flashbeta.txt
18LIST_LINE=`cat aaf-flashbeta.txt`
19ALLOWED=`cat ~/ipk/aaf-flashbeta_allowed`
20
21cd ~/ipk/WWW
22chmod -R 755 `find ~/ipk/source -type d -name "CONTROL"`
23chmod -R 755 `find ~/ipk/source -type d -name "bin"`
24chmod -R 755 `find ~/ipk/source -type d -name "sbin"`
25
26# for externel files
27#cp ~/WWW/civer/*.ipk ~/WWW
28
29for ROUND in $ALLOWED; do
30 for DIR in $LIST_LINE; do
31 echo $DIR > $TMP
32 if [ ! `grep "$ROUND" $TMP | wc -l` -eq 0 ]; then
33 echo ROUND $ROUND == $DIR DIR
34 echo $DIR >> $NEXT_LIST
35 fi
36 done
37done
38
39LIST=`cat $NEXT_LIST`
40
41
42for DIR in $LIST; do
43 ipkg-build ~/ipk/source/"$DIR"
44done
45
46date=`date`
47echo "make-index"
48ipkg-make-index . > Packages
49echo "pack Packages"
50gzip Packages
51ipkg-make-index . > Packages
52echo "Here is the public AAF-Flash-PlugList" > PlugList
53echo "" >> PlugList
54cat Packages | grep Filename: | sed "s/Filename: enigma2-plugin-//" | sed "s/.ipk//" | sed "s/_sh4//" | sed "s/_/ V/" >> PlugList
55rm test.txt
56echo "" >> PlugList
57echo "mfg AAF-TEAM @ $date" >> PlugList
58echo "done"
59
60rm $NEXT_LIST
61rm $TMP
62
63exit 0
Note: See TracBrowser for help on using the repository browser.