diff options
Diffstat (limited to 'bin/smarty_install.sh')
-rwxr-xr-x | bin/smarty_install.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/smarty_install.sh b/bin/smarty_install.sh new file mode 100755 index 0000000..2039743 --- /dev/null +++ b/bin/smarty_install.sh @@ -0,0 +1,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." |