forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New script - update.sh - that will update the baseline data directory.
Update test scripts to call the update script. Fixes ufs-community#574
- Loading branch information
1 parent
67bbcdb
commit c07db3a
Showing
6 changed files
with
52 additions
and
11 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
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
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
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
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
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,37 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
HOMEreg=$1 | ||
test_name=$2 | ||
commit_num=$3 | ||
|
||
base_dir=$HOMEreg/baseline_data | ||
base_dir_commit=${base_dir}/$test_name.$commit_num | ||
|
||
chmod 755 $base_dir | ||
|
||
if [ -d $base_dir_commit ];then | ||
chmod 777 $base_dir_commit | ||
rm -fr $base_dir_commit | ||
fi | ||
|
||
mkdir -p $base_dir_commit | ||
|
||
for files in *tile*.nc | ||
do | ||
if [ -f $files ]; then | ||
cp $files $base_dir_commit | ||
chmod 444 $base_dir_commit/$files | ||
fi | ||
done | ||
|
||
chmod 555 $base_dir_commit | ||
rm -f $base_dir/$test_name | ||
cd $base_dir | ||
ln -fs $test_name.$commit_num $test_name | ||
|
||
# move this to driver? | ||
###chmod 555 $base_dir | ||
|
||
exit |