Legend:
- Unmodified
- Added
- Removed
-
scripts/watch.php
r1551 r1552 4 4 // Based on Debian DEHS http://svn.debian.org/wsvn/dehs 5 5 6 $path=$_GET["path"]; 7 $archs=$_GET["archs"]; 8 uscan($path); 6 $vars=$_GET["vars"]; 7 uscan($vars); 9 8 10 9 // Display warnings? 11 10 $show_warnings=false; 12 11 13 function uscan($path){ 12 function uscan($vars){ 13 $arrvars=explode("*", $vars); 14 $path = $arrvars[0]; 15 16 $arrarchs=explode("-", $arrvars[1]); 17 $archs="<font color=red>".$arrarchs[0]."</font> <font color=green>".$arrarchs[1]."</font> <font color=blue>".$arrarchs[2]."</font>"; 18 14 19 $uscan_res=shell_exec("/usr/bin/uscan --report --dehs --check-dirname-level 0 ".$path); 20 21 # work around the plus bug 22 $uscan_res=str_replace("+", "*", $uscan_res); 15 23 $p = xml_parser_create(); 16 24 xml_parse_into_struct($p, $uscan_res, $vals, $index); … … 49 57 if($pkg !='' || $pkg !=null){ 50 58 if($upstream != null){ 51 echo "<tr bgcolor=white><td><b>".$pkg."</b></td><td><a href=".$up_url.">".$upstream."</a></td><td><font color=".$color.">".$parsix."</font></td><td >".$archs."</td><td bgcolor=".$bk_color.">".$status."</td></tr>";59 echo "<tr bgcolor=white><td><b>".$pkg."</b></td><td><a href=".$up_url.">".$upstream."</a></td><td><font color=".$color.">".$parsix."</font></td><td align=center>".$archs."</td><td bgcolor=".$bk_color.">".$status."</td></tr>"; 52 60 }else{ 53 61 if($show_warnings){ -
scripts/watch.sh
r1551 r1552 7 7 BASE_PATH="/home/parsix/public_html/watch" 8 8 BASE_URL="http://watch.parsix.org" 9 LOCAL_REPO="/home/parsix-pkg-repo" 10 SVN_REPO="/svn/pkg-parsix/" 9 11 10 12 if [ -f $BASE_PATH/index.html ]; then … … 18 20 echo $HEADER > $BASE_PATH/index.html 19 21 20 LIST=` find /svn/svn-parsix/ -name watch | grep debian |grep trunk | sort`22 LIST=`/usr/bin/find $SVN_REPO -name watch | /bin/grep debian | /bin/grep trunk | sort` 21 23 22 24 for x in $LIST 25 do 23 26 # ARCH Checks 24 $COUNT = `find ${x/%debian\/watch/} | grep -c amd64.deb` 27 28 PKG=`basename ${x/%trunk\/debian\/watch/}` 29 30 COUNT=`/usr/bin/find $LOCAL_REPO | /bin/grep $PKG | /bin/grep -c amd64.deb` 25 31 if [ $COUNT -ne 0 ]; then 26 $AMD64 = "amd64" 32 AMD64="amd64" 33 else 34 AMD64="" 27 35 fi 28 36 29 $COUNT = `find ${x/%debian\/watch/} |grep -c i386.deb`37 COUNT=`find $LOCAL_REPO | /bin/grep $PKG | /bin/grep -c i386.deb` 30 38 if [ $COUNT -ne 0 ]; then 31 $I386 = "i386" 39 I386="i386" 40 else 41 I386="" 32 42 fi 33 43 34 $COUNT = `find ${x/%debian\/watch/} |grep -c all.deb`44 COUNT=`find $LOCAL_REPO | /bin/grep $PKG | /bin/grep -c all.deb` 35 45 if [ $COUNT -ne 0 ]; then 36 $ALLARCH = "all" 46 ALLARCH="all" 47 else 48 ALLARCH="" 37 49 fi 38 50 39 ARCHS="$ALLARCH $I386$AMD64"51 ARCHS="$ALLARCH-$I386-$AMD64" 40 52 41 do lynx -source $BASE_URL/watch.php?path=${x/%debian\/watch/}&archs=$ARCHS | sed s/Debian/Parsix/g >> $BASE_PATH/index.html53 lynx -source $BASE_URL/watch.php?vars=${x/%debian\/watch/}*$ARCHS | sed s/Debian/Parsix/g >> $BASE_PATH/index.html 42 54 43 55 done
Note: See TracChangeset
for help on using the changeset viewer.


