sync master with lastest vba changes
[ooovba.git] / dmake / qssl / setup
blob9aa004cd604fa8ecde844e9a3d4bea5b4dfe795d
1 #!/bin/sh
3 if [ ! -d /usr/local ]; then mkdir /usr/local ; fi
4 if [ ! -d /usr/local/bin ]; then mkdir /usr/local/bin ; fi
5 if [ ! -d /usr/local/lib ]; then mkdir /usr/local/lib ; fi
6 if [ ! -d /usr/local/lib/dmake-4.1 ]; then mkdir /usr/local/lib/dmake-4.1 ; fi
9 if [ -d /usr/local/lib/dmake-4.1/startup ]
10 then
11 if [ -f /usr/local/lib/dmake-4.1/startup/local.mk ]; then
12 cp /usr/local/lib/dmake-4.1/startup/local.mk /tmp/local$$
13 elif [ -d /usr/local/lib/dmake ]; then
14 if [ -f /usr/local/lib/dmake/startup/local.mk ]; then
15 cp /usr/local/lib/dmake/startup/local.mk /tmp/local$$
18 /bin/rm -rf /usr/local/lib/dmake-4.1/startup /usr/local/lib/dmake
21 mkdir /usr/local/lib/dmake-4.1/startup
23 echo "Installing Dmake into /usr/local/bin"
25 cp dmake-4.1g/dmake /usr/local/bin/dmake-4.1;
26 /bin/rm -f /usr/local/bin/dmake
27 (cd /usr/local/bin; ln -s dmake-4.1 dmake; chmod a+x,og-w dmake-4.1)
28 cp -r dmake-4.1g/startup /usr/local/lib/dmake-4.1/startup
29 (cd /usr/local/lib; ln -s dmake-4.1 dmake)
30 find /usr/local/lib/dmake-4.1 -type d -exec chmod a+x {} \;
31 find /usr/local/lib/dmake-4.1 -type f -exec chmod og-w,a+r {} \;
33 if [ -f /tmp/local$$ ]
34 then
35 cp /tmp/local$$ /usr/local/lib/dmake/startup/local.mk
38 /bin/rm -rf dmake-4.1g
40 echo "Dmake setup is complete"