Jump to content
Eternal Lands Official Forums
Sign in to follow this  
(Athosino)

Linux El Installer

Recommended Posts

Not a bad idea, but not entirely necessary.

 

You need to add a line after the licence accept to the ask where to install it. Otherwise, its just gonna be annoying.

 

something like this:

 

echo Enter path to install Eternal Lands (e.g. /usr/local/share/games/el).\( Default [d]\)
read INSTALL_ANS
if [ "$INSTALL_ANS" = d ]
mkdir /usr/local/share/games/el
cd /usr/local/share/games/el
#CONTINUE WITH UNZIP HERE.
else
mkdir $INSTALL_ANS
cd $INSTALL_ANS
#CONTINUE WITH UNZIP HERE, MIGHT WANT TO PUT ALL unzip/echo's into their #own functions
fi

 

EDIT: I cant do spelling corrections now, but if it isnt done by the time i return home, ill email you them there.

Edited by Placid

Share this post


Link to post
Share on other sites

ill rewrite the whole script and functionise everything if you like, that ways its a LOT easier to maintain.

 

Let me know.

Share this post


Link to post
Share on other sites

Geeze!! I was simply helpin out.

 

Just organise the unzipping etc into their own functions. And add my above code (or rewrite it if you want to).

 

Thats the gist of what i would have done anyways.

Share this post


Link to post
Share on other sites

Excellent, the coding looks fine (thanks for the mention :D )

 

The only way i thought it was the previous version is because the readme file says v.01 at the top and there is no change log. Realised the change log was in the script itself.

 

Ill try and make those changes to the readme if you like? (i.e., change log from script and grammar errors etc?)

 

EDIT

 

How come you didnt function everything?

Edited by Placid

Share this post


Link to post
Share on other sites

:D

No thanks, this way change log is fine - I will add note that it's change log in version 0.3 :D

BTW, I didn't function because... I don't know how to use functions <_<

plz make it how the shall look like and correct the grammar errors either in script itself either in readme

u can add something if u like

i will post to change log ur name :D

Btw go to the help forum and THINK where the problem might be!!! :D

Share this post


Link to post
Share on other sites

heh, no problem.

 

Ill edit the spellin/grammar and post here.

 

Check my edited post on the help Me forum, as i have edited a quite a few times.

 

BTW, functions are very easy:

 

#! /bin/sh

thisIsAFunction(){
 echo "Hello, i am in a function";
 yes Hello!!!!!
}

thisIsAFunction # This would call the function defined above.

 

Try the above in a script.

Edited by Placid

Share this post


Link to post
Share on other sites

You may use my lib checker too and add it to install script.

 

Regards.

Share this post


Link to post
Share on other sites

Because not everyone is a sysadmin...there are people I've met who don't understand bash scripts :P

Share this post


Link to post
Share on other sites
may i ask why we need an installer at all? download / unpack / run.. how much easier does it get?

cus the script mades very easy way to execute EL, and also it's safe of time

Share this post


Link to post
Share on other sites
why not use autopackage?

 

http://autopackage.org/

it's really good, but we need something working on ALL distors and also working without X

Erm, why without X?

do u usally run root in X?

Yes. I do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×