File: nlc

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (22 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# 
# This script compiles the Italian fidonet nodelist received via TIC
# Copyright (C) 1996 by Marco d'Itri, 2:332/206.10 / md@linux.it

. /etc/ifmail/ifshellvars

if [ -r $IFSPOOL/inb/region33.zip ]; then
  unzip -L -o -p $IFSPOOL/inb/region33.zip \
    | sed "s/^;Zone,2,/Zone,2,/1" > $IFNLD/region.033.NEW
  { printf 'To: ftn\n'
    diff --unified=0 $IFNLD/region.033 $IFNLD/region.033.NEW; } \
  | sendmail -t
  mv $IFNLD/region.033.NEW $IFNLD/region.033
fi
tail -f -n0 $IFLOG &
TOKILL=$!
$IFBIN/ifindex
sleep 1
kill $TOKILL
mv  $IFSPOOL/inb/region33.zip  $IFSPOOL/inb/region33.OLD