The Lurker's Guide to Babylon 5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
568 B

17 years ago
  1. #!/bin/sh
  2. #
  3. # Run once a night to regenerate guide pages so that the timestamps
  4. # on new items go away after a couple weeks.
  5. #
  6. cd /home/woodstock/koreth/Lurk/guide
  7. ./gen.py [0-9]?? | egrep -v '^[0-9][0-9][0-9]$' | egrep -v '^[0-9][0-9][0-9] jpeg$'
  8. for i in [0-9]??; do
  9. if [ -f \#$i ]; then
  10. if cmp -s $i \#$i; then
  11. mv \#$i $i
  12. else
  13. echo $i source differed:
  14. diff \#$i $i
  15. echo ''
  16. rm \#$i
  17. fi
  18. fi
  19. if [ -f \#$i.html ]; then
  20. if cmp -s $i.html \#$i.html; then
  21. mv \#$i.html $i.html
  22. else
  23. echo $i HTML differed
  24. rm \#$i.html
  25. fi
  26. fi
  27. done