openmamba logo
GNU/Linux distribution
general information distribution forum community wiki bugs events
info   software   forum community wiki bugs events
packages ffmpeg-20080820svn-libx264.patch
      Pages: #!/bin/bash echo $header ext=${file/*.} range=10000 filename="/var/www/www.openmamba.org/$file" filename_check=`readlink -f $filename` [ "${filename_check:0:27}" = "/mnt/sdc1/ftp/pub/openmamba" ] || exit 0 filelines=`wc -l $filename | awk '{ print $1 }'` filepages=`expr $filelines / $range + 1` if [ "$page" ]; then [ $page -gt 0 ] || page=1 else page=1 fi from=`expr \( $page - 1 \) \* $range + 1` to=`expr $from \+ $range - 1` nextpage=`expr $page + 1` prevpage=`expr $page - 1` [ $from -ge $range ] && echo -n "< " || echo -n "< " idxsize=20 [ $page -gt $idxsize ] && idxfrom=`expr $page - $idxsize` || idxfrom=1 idxto=`expr $idxfrom + $idxsize \* 2` [ $idxto -le $filepages ] || idxto=$filepages [ $filepages -gt $idxsize ] && idxst=`expr $page - $idxsize` || idxst=1 for i in `seq $idxfrom $idxto`; do if [ $i -eq $page ]; then echo -n "$i " else echo -n "$i " fi done [ $to -lt $filelines ] && echo -n "> " || echo -n "> " echo exit 0 DOWNLOAD      
#!/bin/bash
echo $header
ext=${file/*.}
range=10000
filename="/var/www/www.openmamba.org/$file"
filename_check=`readlink -f $filename`
[ "${filename_check:0:27}" = "/mnt/sdc1/ftp/pub/openmamba" ] || exit 0
if [ "$page" ]; then
   [ $page -gt 0 ] || page=1
else
   page=1
fi
from=`expr \( $page - 1 \) \* $range + 1`
to=`expr $from \+ $range - 1`
if [ "$ext" = "log" -o "$ext" = "spec" -o "$ext" = "patch" -o "$ext" = "diff" ]; then
   /bin/sed -n "${from},${to}p" $filename | /bin/sed -e 's|\&|\&|g' \
            -e 's|<|\<|g' \
	    -e 's|>|\>|g' \
	    -e 's|\([[:alpha:][:digit:]]*\)\@[[:alpha:][:digit:]]*\.[[:alpha:][:digit:]\.]*|\1@...|g'
   #'s|\&|\\&|g' -e 's|<|\<|g' -e 's|>|\>|g' -e 's|\([[:alpha:][:digit:]]*\)\@[[:alpha:][:digit:]]*\.[[:alpha:][:digit:]\.]*|\1@...|g' /var/www/www.openmamba.org/$file 
else
   /bin/sed -n "${from},${to}p" $filename
fi
exit 0