Skip to content

Commit

Permalink
Add/update Config/ files for new MAPL version
Browse files Browse the repository at this point in the history
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
  • Loading branch information
lizziel committed Jan 22, 2019
1 parent 5dcde9e commit 0f050c1
Show file tree
Hide file tree
Showing 32 changed files with 13,257 additions and 491 deletions.
7 changes: 7 additions & 0 deletions Shared/Config/Assert.mk
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
62 changes: 62 additions & 0 deletions Shared/Config/CVSTAG_install.pl
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";

0 comments on commit 0f050c1

Please sign in to comment.