# set the FG_ROOT environment variable if it hasn't already been set.
if ( $ENV{FG_ROOT} eq "" ) {
# look for a file called fgtop as a place marker
- if ( -e "fgtop" ) {
- $ENV{FG_ROOT} = ".";
- } elsif ( -e "../fgtop" ) {
- $ENV{FG_ROOT} = "..";
- }
+ die "You must remember to set the FG_ROOT environment variable!\n";
}
# irregularly fitted vertices
sub dem2node {
- if ( $dem_file =~ m/.gz$/ ) {
- $command = "gzip -dc $dem_file | Dem2node/dem2node $ENV{FG_ROOT} - $error";
- } else {
- $command = "Dem2node/dem2node $ENV{FG_ROOT} $dem_file $error";
- }
+ $command = "Dem2node/dem2node $ENV{FG_ROOT} $dem_file $error";
$command = fix_command($command);
print "Running '$command'\n";
# fixed file.1.node
sub fixnode {
- if ( $dem_file =~ m/.gz$/ ) {
- $command = "gzip -dc $dem_file | FixNode/fixnode - $subdir";
- } else {
- $command = "FixNode/fixnode $dem_file $subdir";
- }
+ $command = "FixNode/fixnode $dem_file $subdir";
$command = fix_command($command);
print "Running '$command'\n";
open(OUT, "$command |");
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.16 1998/04/18 03:57:53 curt
+# Added zlib library support.
+#
# Revision 1.15 1998/04/08 23:24:07 curt
# Adopted Gnu automake/autoconf system.
#