Re: Dll downloading (again)

2003-11-02 Thread Tommy McCabe
Good point. Efficiency is important, and my previous script had a lot of unnecessary repeating. I've rewritten it to be shorter and sweeter (and not have 6 if-thens in a row!) #!/bin/bash # Script for DLL downloading if [ "$compress" <> 'tar' ] and if [ "$compress" <> 'tar.gzip' ] and if [ "$compr

Dll downloading (improved((again))

2003-11-02 Thread Tommy McCabe
Error message for unknown compression types added. Bug involving excess {} fixed. #!/bin/bash if [ "$compress" <> 'tar' ] then { if [ "$compress" <> 'tar+gzip' ] then { if [ "$compress" <> 'zip' ] then { if [ "$compress" <> 'none' ] then { if [ "$com

Dll downloading (again)

2003-11-02 Thread Tommy McCabe
Support for tar+bzip2 added. Bug where .tar.gz file would go undeleted fixed. #!/bin/bash if [ "$compress" == 'tar' ] then { wget -P /var/tmp "$server"/"$serverpath"/"$dllname".tar tar -x -k -f /var/tmp/"$dllname".tar rm /var/tmp/"$dllname".tar cp /var/tmp/"$dllname".dll "$dest"/"$dlln

Whoops!

2003-11-02 Thread Tommy McCabe
Sorry, forgot to add in the script! #!/bin/bash if [ "$compress" == 'tar' ] then { wget -P /var/tmp "$server"/"$serverpath"/"$dllname".tar tar -x -k -f /var/tmp/"$dllname".tar rm /var/tmp/"$dllname".tar cp /var/tmp/"$dllname".dll "$dest"/"$dllname".dll } else { if [ "$compress" == '

DLL downloading

2003-11-02 Thread Tommy McCabe
I've gotten rather tired of downloading DLL files one-by-one, so I wrote a script to do it automatically. It gets the DLLs from an online server and uses packages/tools bash, wget, tar, rm, cp, gzip, and unzip (Those are basic GNU packages, so I'm assuming they're universal to Linux distros.) Unfor