-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/update Config/ files for new MAPL version
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
- Loading branch information
Showing
32 changed files
with
13,257 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ----------------- | ||
# Check Environment | ||
# ----------------- | ||
|
||
ifneq ($(shell $(ESMABIN)/Assert), 0) | ||
$(error Please correct your build environment and try again) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/perl -w | ||
######################################################################## | ||
# | ||
# name - CVSTAG_install.pl | ||
# purpose - This script takes the tag ID from the CVS/Tag file and | ||
# writes it to the CVSTAG file in the build's etc directory. | ||
# | ||
# input argument - | ||
# $1 : location of the build's etc directory | ||
# | ||
# REVISION HISTORY: | ||
# | ||
# 11Aug2006 Stassi Initial version added to CVS repository | ||
# 12Sep2006 Stassi Do not overwrite pre-existing CVSTAG file. This | ||
# allows users to manually edit the file without fear | ||
# of having their modification overwritten. | ||
######################################################################### | ||
use strict; | ||
use File::Basename; | ||
|
||
my $scriptname = basename($0); | ||
my ($esmaetc,$CVSTAG); | ||
my ($TagFile,$Ntag,$tag); | ||
|
||
# get ESMA etc directory location | ||
#-------------------------------- | ||
if (scalar(@ARGV) < 1) { | ||
print STDERR "usage: $scriptname \$ESMAETC\n"; | ||
exit 2; | ||
} | ||
$esmaetc = shift @ARGV; | ||
|
||
# verify that directory location exists | ||
#-------------------------------------- | ||
if (! -d $esmaetc) { | ||
print STDERR "$scriptname: Error ... $esmaetc is not a directory.\n"; | ||
exit 3; | ||
} | ||
|
||
# if output file already exists, then make note and exit gracefully | ||
#------------------------------------------------------------------ | ||
$CVSTAG = "$esmaetc/CVSTAG"; | ||
if (-e $CVSTAG) { | ||
warn "$CVSTAG already exists and will not be overwritten.\n"; | ||
exit 0; | ||
} | ||
|
||
# get tag info from Tag file in CVS directory, if it exists | ||
#---------------------------------------------------------- | ||
$tag = "tag-unknown"; | ||
$TagFile = "./CVS/Tag"; | ||
if (-e $TagFile) { | ||
open TAG, $TagFile; | ||
$Ntag = <TAG>; | ||
if ($Ntag =~ /[NT](.*)/) {$tag = $1}; | ||
close TAG; | ||
} | ||
|
||
# write tag info to CVSTAG file in ESMA etc directory | ||
#---------------------------------------------------- | ||
open CVSTAG, "> $CVSTAG"; | ||
print CVSTAG "$tag\n"; |
Oops, something went wrong.