-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubmit-local.sh
executable file
·58 lines (51 loc) · 1.28 KB
/
submit-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
if [ -z $1 ]
then
echo "Error: No run-spec specified"
exit 1
fi
path=$(pwd)
###############################################
# HANDLE SPECIAL DEBIAN SITUATION
###############################################
# Debian platform has no unzip
# so unzip and tar up here
wget http://www.netlib.org/f2c/libf2c.zip
mkdir libf2c
cd libf2c
unzip ../libf2c.zip
cd ..
tar zcf libf2c.tgz libf2c
mv libf2c.tgz lapack_files
mv libf2c.zip lapack_files
# We have this directory now gzipped so
# that can be read by Debian, just delete it.
rm -rf ./libf2c
# Make sure the tgz file just created,
# which is not in the repo, gets copied
echo \
"method = scp
scp_file = $path/lapack_files/libf2c.tgz
">$path/lapack.scp
###############################################
# Done with HANDLE SPECIAL DEBIAN SITUATION
###############################################
# Needed in the case where the files are
# a. not in the run-spec directory and
# b. not checked in
echo \
"method = scp
scp_file = $HOME/fluka/*
recursive = true
">$path/fluka.scp
# Get all files from the
# CALLING directory, not the
# REPOSITORY
echo "
method = scp
scp_file = ${path}/*
recursive = true
" > ${path}/fetch/dagmc-ci-local.scp
cp $1 local-$1
sed -i 's:fetch/dagmc-ci.git:fetch/dagmc-ci-local.scp:' local-$1
nmi_submit local-$1