LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2002, 03:33 PM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
my tar.gz installer..


#!/bin/bash

# a source version program installer
# keep you away from looking at dumb outputs until previous install command finishes..
# by Eugene Kim

# Installation
# save this file as autoinstall.sh in your $PATH
# #chmod +x autoinstall.sh

#Usage
# if u have to
# ./configure
# make
# make install
# in order to install a program

# #autoinstall.sh
# and type ./configure, make, make install at the prompt
# autoinstall will do ./configure, make, make install in order

cd `pwd`
store()
{
result=$result'::'$arg
}

while [[ -z $arg || $arg != 0 ]]
do
echo "Enter command to be executed (if u entered all commands, type 0):"
read arg
store
done

result=`echo $result | sed 's/:://'`

echo $result |
gawk 'BEGIN { RS="::"}
{
if($0 !~ /0/) {
printf( "executing %s\n", $0)
if(system($0) != 0) {
printf( "%s caused error\n", $0)
exit}
}
}'

Last edited by doublefailure; 07-13-2002 at 03:49 PM.
 
Old 07-13-2002, 04:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
am i missing something? what exactly is the point of this script? if it is just to make it failsafe and fall through if one stage fails, jsut use

./configure && make && make install

much easier
 
Old 07-13-2002, 04:12 PM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
well
let's say
./configure takes 2min
make takes 5min
make install takes 1min

i tend to look at screen for 8min --;
purpose is to save that 8min..

if it's kernel compile
it takes maybe 30min?
well..
=)
 
Old 07-13-2002, 04:14 PM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
oh
i c your point

./configure && make && make install

does the same thing
=)

my bad
i didn't know
--;
hehe

Last edited by doublefailure; 07-13-2002 at 04:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
(K)Ubuntu installer failing to load installer components from CD. slackyoda Ubuntu 5 07-20-2005 03:06 PM
How could I install the firefox-1.0-installer-tar-gz? kenshinji Linux - Software 3 03-26-2005 08:29 PM
is there a installer for tar.bz2 for fedora core 2? krt47 Linux - Software 1 08-04-2004 06:49 AM
is there a simple or easy installer for *.sh files after i unzip *.tar.gz? krt47 Linux - Software 3 07-31-2004 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration