[Lunar-commits] CVS: theedge/bin lvu,1.46,1.47
Auke Kok
sofar at lunar-linux.org
Fri Apr 16 10:37:30 GMT 2004
Update of /var/cvs/lunar/theedge/bin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv16422/bin
Modified Files:
lvu
Log Message:
Merging vertigo's patch suggestion and taking a bit of time to rewrite those two secionts of code.
Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- lvu 15 Mar 2004 21:50:51 -0000 1.46
+++ lvu 16 Apr 2004 10:37:28 -0000 1.47
@@ -304,32 +304,36 @@
newer() {
- [ -z "$1" ] && return 1
- DATE=$1
- [ "$DATE" -lt "20010101" ] && return 1
- [ "$DATE" -gt "20310101" ] && return 1
- for MODULE in $(list_moonbase) ; do
- run_details $MODULE
- if [ $ENTERED -gt $DATE ] ; then
- echo $MODULE
+ if [ ! -z "$1" ] ; then
+ if [ -z `echo $1 | sed 's/[[:digit:]]//g'` ] ; then
+ if [ "$1" -gt "20010101" -a "$1" -lt "20310101" ] ; then
+ for MODULE in $(list_moonbase) ; do
+ run_details $MODULE
+ if [ "$ENTERED" -gt "$1" ] ; then
+ echo $MODULE
+ fi
+ done
+ fi
fi
- done
+ fi
}
older() {
- [ -z "$1" ] && return 1
- DATE=$1
- [ "$DATE" -lt "20010101" ] && return 1
- [ "$DATE" -gt "20310101" ] && return 1
- for LINE in $(cat $MODULE_STATUS_BACKUP) ; do
- LIN_DATE=$(echo $LINE | cut -d : -f2)
- if [ $LIN_DATE -gt $DATE ] 2>/dev/null; then
- true
- else
- echo $LINE | cut -d : -f1
+ if [ ! -z "$1" ] ; then
+ if [ -z `echo $1 | sed 's/[[:digit:]]//g'` ] ; then
+ if [ "$1" -gt "20010101" -a "$1" -lt "20310101" ] ; then
+ for LINE in $(cat $MODULE_STATUS) ; do
+ LIN_DATE=$(echo $LINE | cut -d: -f2)
+ if [ "$LIN_DATE" -gt "$1" ] 2>/dev/null ; then
+ true
+ else
+ echo $LINE | cut -d: -f1
+ fi
+ done
+ fi
fi
- done
+ fi
}
More information about the Lunar-commits
mailing list