rdmcompare

来自「A car navigation system for Unix and Poc」· 代码 · 共 50 行

TXT
50
字号
#!/bin/sh## Compare the RoadMap map directory content with the Tiger directory content# to point out counties that have not yet been translated (or for which the# translation failed).## USAGE:# ------## rdmcompare <tiger-path> [maps=<map-directory-path>]#MAPSDIR=/usr/local/share/roadmapSTARTDIR=`pwd`TIGERDIR=$1shiftcase $1 in   maps=*) MAPSDIR=`expr $1 : 'maps=\(.*\)'`           shift           ;;esacfunction check_one_county {   base=`basename $1`   fips=`expr substr $base 4 5`   if [ ! -e $MAPSDIR/usc$fips.rdm ] ; then       echo "## usc$fips.rdm was not generated"       echo "## usc$fips.rdm was not generated" >> $STARTDIR/buildmap_errors.log   fi}cd $TIGERDIRfor i in tgr*.zipdo   check_one_county $idonefor i in TGR*.ZIPdo   check_one_county $idone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?