aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/map
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-13 04:49:19 +0000
committerrsc <devnull@localhost>2005-01-13 04:49:19 +0000
commitc8b6342d3c2a167dec16931815926e9e4387e7ef (patch)
tree80d3ec6ea074462b30639168113def880476dad6 /src/cmd/map
parent741f510ce758f77ed5193256fb693a09a7daecce (diff)
downloadplan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip
Many small edits.
Diffstat (limited to 'src/cmd/map')
-rw-r--r--src/cmd/map/map.c3
-rwxr-xr-xsrc/cmd/map/mapdemo.rc2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/map/map.c b/src/cmd/map/map.c
index e8dd3ab3..8d4dbfc2 100644
--- a/src/cmd/map/map.c
+++ b/src/cmd/map/map.c
@@ -21,7 +21,7 @@ char *mapindex(char *);
proj projection;
-static char *mapdir = "/lib/map"; /* default map directory */
+static char *mapdir = "#9/map"; /* default map directory */
struct file {
char *name;
char *color;
@@ -150,6 +150,7 @@ main(int argc, char *argv[])
double dd;
if(sizeof(short)!=2)
abort(); /* getshort() won't work */
+ mapdir = unsharp(mapdir);
s = getenv("MAP");
if(s)
file[0].name = s;
diff --git a/src/cmd/map/mapdemo.rc b/src/cmd/map/mapdemo.rc
index 033969ab..24be3e1f 100755
--- a/src/cmd/map/mapdemo.rc
+++ b/src/cmd/map/mapdemo.rc
@@ -9,7 +9,7 @@ fn demo {proj=$1; shift;
echo t $type
echo 'm -8192 -8192'
echo t $proj - $label
- MAP=world MAPDIR=/lib/map map $proj $* -s -d 5
+ MAP=world MAPDIR=$PLAN9/map map $proj $* -s -d 5
}
sleep 5
}