Line 92: |
Line 92: |
| echo "http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=${pkgname}&version=${VSME}beta&short_desc=first%20import%20to%20sme$VSME%20tree%20[$pkgname]" | | echo "http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=${pkgname}&version=${VSME}beta&short_desc=first%20import%20to%20sme$VSME%20tree%20[$pkgname]" |
| echo "http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=${pkgname}&version=${VSME}beta&short_desc=first%20import%20to%20sme$VSME%20tree%20[$pkgname]">>~/TODO | | echo "http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=${pkgname}&version=${VSME}beta&short_desc=first%20import%20to%20sme$VSME%20tree%20[$pkgname]">>~/TODO |
| + | |
| + | ====listv9==== |
| + | List rpm version already online in the sme9contribs tree and build srpm from the folder ~/srpm which are not already online |
| + | |
| + | #!/bin/bash |
| + | |
| + | #liste contribs avec deja version v9 |
| + | #find ~/smecontribs/rpms/ -name 'contribs9' -printf '%h\n' | sort -u |grep "smeserver-"|cut -d"/" -f6>~/alreadyV9 |
| + | # liste �tant deja released |
| + | URL='http://mirror.canada.pialasse.com/releases/9/smecontribs/SRPMS/'; |
| + | curl $URL 2>&1 | grep -o -E 'href="(.+)"' | cut -d'"' -f2|grep -E '^smeserver-'|rev| cut -d"-" -f3-|rev >~/lscontribs9 |
| + | home=~ |
| + | echo $home |
| + | ls ~/srpm |grep "src.rpm"|sed "s|.*|$home/srpm/&|"> ~/listsrpm |
| + | |
| + | #listes juste import�e ou smedev |
| + | comm -23 <(sort ~/lscontribs9) <(sort ~/alreadyV9) |
| + | |
| + | while read fichier ; do |
| + | |
| + | tmp=`echo $fichier|rev|cut -d"/" -f1| cut -d"-" -f3-|rev` |
| + | #echo $fichier |
| + | #echo $tmp |
| + | if grep -Fxq "^$tmp$" ~/alreadyV9 |
| + | then |
| + | echo " $tmp : already there " # code if found |
| + | echo " $tmp : already there " >>~/TODO |
| + | else |
| + | echo "$tmp to import into v9" # code if not found |
| + | # import |
| + | echo "addSubTree $fichier 9 " |
| + | addSubTree $fichier 9 |
| + | echo "mv $fichier \"$home/done/\"" |
| + | mv $fichier "$home/srpm/done/" |
| + | sleep 10 |
| + | fi |
| + | |
| + | done < <(cat ~/listsrpm) |
| | | |
| ===Stephdl=== | | ===Stephdl=== |