Skip to content

Commit 230986a

Browse files
committed
Switch configure script to bash.
1 parent eff2ad4 commit 230986a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ commands:
2020
- run: |
2121
source $BASH_ENV
2222
sudo apt-get update
23-
sudo apt-get install -y csh libhdf5-serial-dev libopenmpi-dev openmpi-bin gfortran libtool-bin
23+
sudo apt-get install -y libhdf5-serial-dev libopenmpi-dev openmpi-bin gfortran libtool-bin
2424
python3 -m venv $HOME/venv
2525
source $HOME/venv/bin/activate
2626
pip install --upgrade pip

configure

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
#!/bin/csh -f
1+
#!/bin/bash
22

33
# Create empty src/*/DEPEND files. These files are currently required
44
# by make, but should not be stored in the subversion repository.
55
# This is because the DEPEND files will change later, and the contents
66
# will be machine-dependent.
77

8-
set EXECS = (enzo ring inits enzohop anyl P-GroupFinder)
8+
EXECS=(enzo ring inits enzohop anyl P-GroupFinder)
99

10-
foreach exec ($EXECS)
10+
for exec in ${EXECS[*]}
11+
do
1112

12-
set depend_file = src/$exec/DEPEND
13+
depend_file=src/$exec/DEPEND
1314

1415
rm -f $depend_file
1516
touch $depend_file
1617

17-
end
18+
done
1819

1920
# Create empty src/enzo/Make.config.override file. This file is
2021
# required by make, but should not be stored in the subversion
@@ -27,9 +28,9 @@ touch src/enzo/Make.config.override
2728
# Initialize the Make.config.machine file if it does not exist
2829
# Leave alone if it does exist
2930

30-
if (! -e src/enzo/Make.config.machine) then
31+
if [ ! -e src/enzo/Make.config.machine ]
32+
then
3133
echo "CONFIG_MACHINE = unknown" > src/enzo/Make.config.machine
32-
endif
33-
34+
fi
3435

3536
echo "Configure complete."

0 commit comments

Comments
 (0)