summaryrefslogtreecommitdiff
path: root/bin/smarty_install.sh
blob: 203974378b76b0472705a5883913eec835be18f9 (plain)
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
#!/bin/bash
#
# Smarty templates library quick installation (with sources download)
#

SMARTYVER="3.1.7"

cd ../lib
# download
echo -n "Downloading Smarty sources... "
wget http://www.smarty.net/files/Smarty-$SMARTYVER.tar.gz
echo "done."

# extracting package
echo -n "Extracting... "
tar -xzf Smarty-$SMARTYVER.tar.gz
echo "done."

# merging
echo -n "Merging... "
mkdir Smarty 2> /dev/null
mv Smarty-$SMARTYVER/libs/* Smarty/
mv Smarty-$SMARTYVER/libs/plugins/* Smarty/plugins/
echo "done."

# cleanup
echo -n "Cleaning up... " 
rm -Rf Smarty-$SMARTYVER Smarty-$SMARTYVER.tar.gz
echo "done."