dbut des travaux sur fixactive
darcs-hash:20021118200207-a279a-ffaaff105ba7a30852d76ee8a1bf3252d6d4feea.gz
This commit is contained in:
parent
114c87037d
commit
6ba8a43817
1 changed files with 7 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#exit 0
|
||||||
|
|
||||||
if [ 1 -le "$#" ] ; then
|
if [ 1 -le "$#" ] ; then
|
||||||
echo "erreur : il ne faut pas mettre d'argument"
|
echo "erreur : il ne faut pas mettre d'argument"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -115,10 +117,12 @@ do
|
||||||
if [ $hi -eq 0 -a $lo -eq 1 ] ; then
|
if [ $hi -eq 0 -a $lo -eq 1 ] ; then
|
||||||
last=0
|
last=0
|
||||||
else
|
else
|
||||||
last="`ls -1 $d 2>/dev/null | sort -n | grep '^[1-9][0-9]*$' | tail -1`"
|
last="`ls -1 $d 2>/dev/null | sort -n | tail | grep '^[1-9][0-9]*$' | tail -1`"
|
||||||
if [ "$last" = '' ] ; then
|
if [ "$last" = '' ] ; then
|
||||||
last=$hi
|
last=$hi
|
||||||
fi
|
fi
|
||||||
|
lo="`ls -1 $d 2>/dev/null | sort -n | head | grep '^[1-9][0-9]*$' | head -1`"
|
||||||
|
md='y'
|
||||||
fi
|
fi
|
||||||
printf "%s %010d %010d %s\n" $gr $last $lo $md >> /tmp/active.new
|
printf "%s %010d %010d %s\n" $gr $last $lo $md >> /tmp/active.new
|
||||||
done < /var/lib/news/active
|
done < /var/lib/news/active
|
||||||
|
@ -128,6 +132,8 @@ echo " "
|
||||||
|
|
||||||
diff /tmp/active.new /var/lib/news/active
|
diff /tmp/active.new /var/lib/news/active
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
diff /tmp/active.new /var/lib/news/active > /dev/null &&
|
diff /tmp/active.new /var/lib/news/active > /dev/null &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue