Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to construct a script file that auto ./configure , make, make check, make install, make clean's. I still have to do some research on this but I was curious... I found a thread that gave an example of making a command, I would think it was global.. the format was
alias CommandName="What you want it to do here"
and then I would just place this code within ~/.bashrc. Now would it be easier to do like I want and make a sript file and somehow place it on this line and make a call to it? If so would just placing the file path/name within the " " work? If not how would I go about seperating each command within that line of code?
ie. alias inst="./configure * make * make check * make install * make clean"
Where * is the seperator used to run each as a command
easy :
./configure && make && make install
&& stop the script if there's an error.
call the textfile "inst" make it executable and put it whatever you want, just be sure the folder is in your path (to add it, add it to user profile in .bash.rc or .profile in their home or change the global profile in /etc/profile. just add a line like PATH="$PATH:/where/you/want")
Lol Dr0zz.. appreciate the feedback guys. I'm gonna give this a shot. When you said you want me to make a text file Half_Elf, you meant inst.txt right?
you have to logout/login to make it work (you can also type source /etc/profile)
by a text file, I mean a file... anything that is unknow is "text" under linux, no need to put the .txt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.