Cron <eagle at hope> bin/inn-snapshot

Julien ÉLIE julien at trigofacile.com
Mon Dec 1 20:01:34 UTC 2008


Hi Russ,

> I ran make maintclean in the snapshot directory, which from past
> experience should fix the problem for tomorrow night.

Isn't it enough to run "make maintclean" in the tests directory?


> I'm mystified why the snapshot process occasionally does this.  I attached
> the script below so that maybe someone can tell me what I'm missing.
>
> /bin/sh ./getsafe.sh ../samples/newsfeeds newsfeeds
> ../samples/newsfeeds newsfeeds differ: char 25, line 1
> ../samples/newsfeeds has changed; please update newsfeeds
> make[2]: *** [newsfeeds] Error 1
> make[2]: Leaving directory `/home/eagle/snapshot/inn/site'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/eagle/snapshot/inn'
> make: *** [warnings] Error 2

>From site/getsafe.sh:

##  File exist locally?
if [ -f ${DEST} ] ; then
    cmp ${SRC} ${DEST}
    if [ $? -eq 0 ] ; then
 touch ${DEST}
 exit 0
    fi
    echo "${SRC} has changed; please update ${DEST}"
    exit 1
fi


One solution is to fix the script not to exit.  Another one is to add:

  cd site
  make maintclean
  cd ..

to support/mksnapshot.

-- 
Julien ÉLIE

« Être raisonnable en toutes circonstances. Il faudrait être fou... » (Raymond Devos) 




More information about the inn-workers mailing list