-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_install.sh
executable file
·71 lines (69 loc) · 2.98 KB
/
fake_install.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
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
clear
echo "## ----------------------------------------------------------------------------- ##"
sleep 0.03
echo "## -- EPITECH 2015 ------------------------ --- - --- ---- -- -- - --- -- ##"
sleep 0.03
echo "## ---Jason Brillante brilla_a brilla_b --- ---- --- - -- --- - - - -- -- -- -- ##"
sleep 0.03
echo "## ---Les Lapins Noirs -------------------- ---- --- - -- --- - - - -- -- -- -- ##"
sleep 0.03
echo "## ---------------------------------------- ---- --- - -- --- - - - -- -- -- -- ##"
sleep 0.03
echo "## -----|\-//------------------------------ ---- --- -- --- - - --- -- - - -- ##"
sleep 0.03
echo "## -----||//___---------------------------- ---- --- - -- --- - ---- -- - - -- ##"
sleep 0.03
echo "## ----O / \--------------------------- ---- --- - -- --- - - ---- -- -- -- ##"
sleep 0.03
echo "## ---<________/--------------------------- - - --- - - - --- - --- -- ##"
sleep 0.03
echo "## ----------------------------------------------------------------------------- ##"
sleep 0.03
echo "## --- -- -- --------------------- --- -- --- - --- -- - -- - -- ##"
sleep 0.03
echo "## --- - - - - - --------------------- -- - -- - - -- -- - -- -- -- -- -- --- ##"
sleep 0.03
echo "## --- - - ---------------------- -- - - - - -- -- - -- ---- - -- --- ##"
sleep 0.03
echo "## --- --- - - - -------------------- -- -- - --- - --- -- -- -- - -- ##"
sleep 0.03
echo "## ----------------------------------------------------------------------------- ##"
echo "Fake install - Targets are ~/.froot/include and ~/.froot/lib"
mkdir -p ~/.froot/lib ~/.froot/include && \
\
cp *.h ~/.froot/include 2> /dev/null && \
cp liblapin.a *.so* ~/.froot/lib && \
\
chmod 644 ~/.froot/include/lapin.h && \
chmod 644 ~/.froot/include/lapin_enum.h && \
chmod 644 ~/.froot/lib/*.a && \
chmod 755 ~/.froot/lib/*.so && \
ln -s ~/.froot/lib/libsfml-audio.so ~/.froot/lib/libsfml-audio.so.2.3 && \
ln -s ~/.froot/lib/libsfml-graphics.so ~/.froot/lib/libsfml-graphics.so.2.3 && \
ln -s ~/.froot/lib/libsfml-network.so ~/.froot/lib/libsfml-network.so.2.3 && \
ln -s ~/.froot/lib/libsfml-system.so ~/.froot/lib/libsfml-system.so.2.3 && \
ln -s ~/.froot/lib/libsfml-window.so ~/.froot/lib/libsfml-window.so.2.3 && \
\
\
\
echo "Installed in ~/.froot/" && \
\
echo "Add these lines into your configuration file if you use sh, bash, zsh or ksh (.shrc, .bashrc, .zshrc, .kshrc):" && \
\
echo "" && \
echo "export LD_LIBRARY_PATH=\"/home/${USER}/.froot/lib/\"" && \
echo "export C_INCLUDE_PATH=\"/home/${USER}/.froot/include/\"" && \
echo "export CPLUS_INCLUDE_PATH=\"/home/${USER}/.froot/include/\"" && \
echo "" && \
\
echo "Add these lines into your configuration file if you use tcsh (.tcshrc):" && \
\
echo "" && \
echo "setenv LD_LIBRARY_PATH \"\`echo /home/${USER}/.froot/lib/\`\"" && \
echo "setenv C_INCLUDE_PATH \"\`echo /home/${USER}/.froot/include/\`\"" && \
echo "setenv CPLUS_INCLUDE_PATH \"\`echo /home/${USER}/.froot/include/\`\"" && \
echo "" \
\
|| \
echo "An error occured."