forked from RIEMS/land
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·42 lines (35 loc) · 1.2 KB
/
Copy pathconfigure
File metadata and controls
executable file
·42 lines (35 loc) · 1.2 KB
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
#!/usr/bin/env bash
BUILDOPTIONS='makefile.in'
finish () {
rm -f $BUILDOPTIONS
exit 0
}
# Compiling Options
echo "Please select from following supported options."
echo " 1. Linux PGI seq"
echo " 2. Linux PGI dm"
echo " 3. Linux Intel seq"
echo " 4. Linux Intel dm"
echo " 5. Linux GCC seq"
echo " 6. Linux GCC dm"
echo " 7. Darwin GCC seq"
echo " 101. Lonestar 5, Stampede 2 @ Texas Advanced Computing Center, seq"
echo " 102. Lonestar 5, Stampede 2 @ Texas Advanced Computing Center, dm"
echo " 0. exit only"
echo ""
echo -n "Enter selection: "
read option
# Compiling Configurations
case $option in
1 ) cp arch/makefile.in.linux.pgi.seq $BUILDOPTIONS ;;
2 ) cp arch/makefile.in.linux.pgi.dm $BUILDOPTIONS ;;
3 ) cp arch/makefile.in.linux.intel.seq $BUILDOPTIONS ;;
4 ) cp arch/makefile.in.linux.intel.dm $BUILDOPTIONS ;;
5 ) cp arch/makefile.in.linux.gnu.seq $BUILDOPTIONS ;;
6 ) cp arch/makefile.in.linux.gnu.dm $BUILDOPTIONS ;;
7 ) cp arch/makefile.in.darwin.gnu.seq $BUILDOPTIONS ;;
101) cp arch/makefile.in.tacc.seq $BUILDOPTIONS ;;
102) cp arch/makefile.in.tacc.dm $BUILDOPTIONS ;;
0 ) exit ;;
* ) echo 'ERROR: Unknown option!' ; exit 1 ;;
esac