home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.geo.meteorology
- Path: sparky!uunet!spsgate!mogate!newsgate!melton.sps.mot.com!rhca80
- From: rhca80@melton.sps.mot.com (Henry Melton)
- Subject: removing the map from the weather gifs
- Message-ID: <1993Jan26.220928.9525@newsgate.sps.mot.com>
- Sender: usenet@newsgate.sps.mot.com
- Nntp-Posting-Host: 222.1.248.94
- Organization: SPS
- Date: Tue, 26 Jan 1993 22:09:28 GMT
- Lines: 80
-
- I have been meaning to post this for some time, it has been working
- nicely at my location for about a month to provide a weather photo
- backdrop to my screen without that irritating political map. giftoppm
- and ppmtogif are from the pbmplus utilities of course.
-
-
- #!/bin/sh
- # This is a shell archive (produced by shar 3.49)
- # To extract the files from this archive, save it to a file, remove
- # everything above the "!/bin/sh" line above, and type "sh file_name".
- #
- # made 01/26/1993 22:09 UTC by ???@melton
- # Source directory /y
- #
- # existing files will NOT be overwritten unless -c is specified
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 55 -rwxr-xr-x remove_map
- # 258 -rw-r--r-- nomap.c
- #
- # ============= remove_map ==============
- if test -f 'remove_map' -a X"$1" != X"-c"; then
- echo 'x - skipping remove_map (File already exists)'
- else
- echo 'x - extracting remove_map (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'remove_map' &&
- #!/bin/sh
- giftoppm CVIS.GIF |nomap|ppmtogif > NVIS.GIF
- SHAR_EOF
- chmod 0755 remove_map ||
- echo 'restore of remove_map failed'
- Wc_c="`wc -c < 'remove_map'`"
- test 55 -eq "$Wc_c" ||
- echo 'remove_map: original size 55, current size' "$Wc_c"
- fi
- # ============= nomap.c ==============
- if test -f 'nomap.c' -a X"$1" != X"-c"; then
- echo 'x - skipping nomap.c (File already exists)'
- else
- echo 'x - extracting nomap.c (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'nomap.c' &&
- #include <stdio.h>
- X
- main()
- {
- X FILE *fp,*fopen();
- X
- X filecopy(stdin);
- }
- X
- filecopy(fp)
- FILE *fp;
- {
- X int c;
- X int good;
- X
- X while ((c = getc(fp)) != EOF)
- X {
- X if (c < 254)
- X good = c;
- X else
- X c = good;
- X
- X putc(c,stdout);
- X }
- }
- X
- SHAR_EOF
- chmod 0644 nomap.c ||
- echo 'restore of nomap.c failed'
- Wc_c="`wc -c < 'nomap.c'`"
- test 258 -eq "$Wc_c" ||
- echo 'nomap.c: original size 258, current size' "$Wc_c"
- fi
- exit 0
- --
- Henry Melton rhca80@melton.sps.mot.com or henry@hutto.cactus.org
- Read my story "The Christmas Count" in CHRISTMAS STARS TOR books
-