Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Remove the stub in a script+tarball?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nom de plume
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2006
Posts: 104

PostPosted: Thu Jan 25, 2007 6:01 pm    Post subject: Remove the stub in a script+tarball? Reply with quote

How do I remove the shell script STUB at the beginning of a script+tarball file? I have 'somefile.gz.sh' that has scripting code at the top, then it says "END OF STUB", and then there is a bunch of binary data afterwards. I tried deleting everything up to the binary data and then gunzipping the file, but that did not work.

The scripted tarball was made with Makeself.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Jan 25, 2007 6:42 pm    Post subject: Reply with quote

Moved from Gentoo Forums Feedback to Other Things Gentoo as it's not related to the forums.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
nom de plume
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2006
Posts: 104

PostPosted: Thu Jan 25, 2007 9:17 pm    Post subject: Reply with quote

My fault, I thought I was in OTW...
Back to top
View user's profile Send private message
nom de plume
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2006
Posts: 104

PostPosted: Thu Jan 25, 2007 10:27 pm    Post subject: Reply with quote

I figured it out:
Code:
tail -n +150 somefile.gz.sh > somefile.tar.gz

where 150 is the number of lines in the script. this is usually given at the top of the file (skip=150).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum