-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy_templates.sh
executable file
·44 lines (36 loc) · 1.19 KB
/
copy_templates.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
#!/bin/bash
# (Selection of shell)
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# copy_templates.sh
#
# Description:
# Making local, not version-controlled copies of the scripts for executing
# SICOPOLIS and the run-specification header files.
#
# Author: Ralf Greve
# Date: 2024-01-08
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CP=/bin/cp
MAIN_DIR="."
TOOLS_DIR="${MAIN_DIR}/tools"
HEADER_DIR="${MAIN_DIR}/headers"
TEMPLATE_DIR_NAME="templates"
echo "Copying scripts *.sh"
echo " from ${MAIN_DIR}/${TEMPLATE_DIR_NAME}"
echo " to ${MAIN_DIR} ..."
echo " "
$CP -f ${MAIN_DIR}/${TEMPLATE_DIR_NAME}/*.sh ${MAIN_DIR}
echo "Copying scripts *.sh"
echo " from ${TOOLS_DIR}/${TEMPLATE_DIR_NAME}"
echo " to ${TOOLS_DIR} ..."
echo " "
$CP -f ${TOOLS_DIR}/${TEMPLATE_DIR_NAME}/*.sh ${TOOLS_DIR}
echo "Copying run-specification headers *.h"
echo " from ${HEADER_DIR}/${TEMPLATE_DIR_NAME}"
echo " to ${HEADER_DIR} ..."
echo " "
$CP -f ${HEADER_DIR}/${TEMPLATE_DIR_NAME}/*.h ${HEADER_DIR}
echo "... done!"
echo " "
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#