#! /bin/sh

# This job fully generates a new "zone-de-dtag.cdb"
#
# Be warned: This job runs several hours, and requires more than
# 300 Mb of free disk space!
# (But my nice SMP host does this in 34 minutes :-) Try to beat me!)
# ./mk  2027.48s user 87.48s system 100% cpu 35:10.32 total

#cd /usr/src/isdn4k-utils/isdnlog/tools/zone/de/01033

# code contains 1xx numbers

mv ../code ../code1
grep ^[^1] ../code1 > ../code

bzip2 -d zneu.de9.bz2
./mzoneall
bzip2 -9 zneu.de9

# restore code
mv ../code1 ../code

../../redzone -zzoneall -rzred.dtag -l5 -v2 -n

rm -f zred.dtag.bz2
bzip2 -9 zred.dtag


cd ../..
rm ../../zone-de-dtag.cdb
make DE

# verify it
./zone -d ../../zone-de-dtag.cdb -z de/01033/zoneall -v

rm de/01033/zoneall
