rdmgendcwmaps

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

TXT
77
字号
#!/bin/sh## rdmgenshpmaps## Utility to scan a directory for the Digital Charts of the World# shapefiles and process them through buildmap## Usage:## rdmgenshpmaps [maps=<map-directory-path>] [test] [dryrun] <files>...#maps=/usr/local/share/roadmapprov='*'if [ $# -eq 0 ] ; then  echo 'Usage: rdmgendcwmaps [maps=<map-directory-path>] [test] [dryrun] [<files> ...]'  exit 1fiverbose=''gendir=Ycase $1 in  maps=*) maps=`expr $1 : 'maps=\(.*\)'`          shift          ;;esaccase $1 in  test) verbose=-v        gendir=N        shift        ;;esacDRYRUN=Ncase $1 in  dryrun) DRYRUN=Y          shift          ;;esacif [ -e ./buildmap ] ; then  BUILDMAP=./buildmapelse  BUILDMAP=buildmapfifor i in $*do  base=`basename $i`  FIPS=`expr substr $base 1 5`  echo $BUILDMAP -f DCW -m $maps $verbose $FIPS $i  if [ $DRYRUN != 'Y' ] ; then    $BUILDMAP -f DCW -m $maps $verbose $FIPS $i  fidoneif [ $gendir = 'Y' ] ; then  echo "Generating usdir.rdm, please wait.."  if [ -e buildus ] ; then    echo ./buildus -s --maps=$maps    if [ $DRYRUN != 'Y' ] ; then      ./buildus -s --maps=$maps    fi  else    echo buildus -s --maps=$maps    if [ $DRYRUN != 'Y' ] ; then      buildus -s --maps=$maps    fi  fi fi 

⌨️ 快捷键说明

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