Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2008 11:12:46 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Mathieu Prevot <mathieu.prevot@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: binary file within a shell script
Message-ID:  <20080508161246.GA2922@dan.emsphone.com>
In-Reply-To: <3e473cc60805080659h721db611s886b80d213f9a2f3@mail.gmail.com>
References:  <3e473cc60805080659h721db611s886b80d213f9a2f3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 08), Mathieu Prevot said:
> Hi there,
> 
> I would like to use one exec file from a shellscript but I would like
> it to be incorporated in the same file, like Nvidia do for its FreeBSD
> drivers. How can I do this in a convenient way ?

Take a look at the file generated by /usr/bin/gzexe; that's one way to
do it (basically, determine the number of lines in your shell script,
append your binary file to the end of the script, and use tail to
extract only the binary file to a tempfile).

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080508161246.GA2922>