-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiesta.sh
executable file
·38 lines (26 loc) · 1009 Bytes
/
siesta.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
#!/bin/bash
set -e
# generate sources
cd "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Obj"
sh "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Src/obj_setup.sh" > siesta1.log 2>&1
# create arch.make file
. "$CURRENT_DIR/arch.sh"
# copy Obj directory for Transiesta
cd "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION"
cp -r Obj Obj_ts
# make Siesta
box_out "Installing Siesta..."
cd "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Obj"
make OBJDIR=Obj > siesta2.log 2>&1
box_out "Siesta Installation OK"
# make TBtrans
box_out "Installing TBtrans..."
cd "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Util/TS/TBtrans"
make OBJDIR=Obj_ts > siesta4.log 2>&1
box_out "TBtrans Installation OK"
# create symlinks
sudo ln -s "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Obj/siesta" /usr/local/bin/siesta
sudo ln -s "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Obj_ts/transiesta" /usr/local/bin/transiesta
sudo ln -s "$SIESTA_DIR/siesta-$SIESTA_FULL_VERSION/Util/TS/TBtrans/tbtrans" /usr/local/bin/tbtrans
box_out "Installation Completed!"
exit