Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Aug 2014, 00:13
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Strip --strip-debug --strip-unneeded recursively
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
stemsee


Joined: 27 Jun 2013
Posts: 344
Location: London

PostPosted: Sat 02 Aug 2014, 08:30    Post subject:  Strip --strip-debug --strip-unneeded recursively
Subject description: how to
 

How to strip self compiled libs/apps for puppy.

Is there a magic script already in existence?

I have got this;


recursive strip command
Code:
find . -type f -print -exec strip --strip-debug {} \;


determine executale
Code:
 [ `stat -c %A someFile | sed 's/...\(.\).\+/\1/'` == "x" ] 


I need to add code to find executables and strip unneeded, other files strip debug.

I guess
Code:
find . -type f -name '*' |  [ `stat -c %A * | sed 's/...\(.\).\+/\1/'` == "x" ] | $strip
case $strip in
         x) strip --strip-unneeded
         *) strip --strip-debug
esac


Any advice welcome?
Back to top
View user's profile Send private message MSN Messenger 
jamesbond

Joined: 26 Feb 2007
Posts: 2109
Location: The Blue Marble

PostPosted: Sat 02 Aug 2014, 09:53    Post subject:  

I strip --strip-unneeded all files. I don't bother to check for filetypes - strip does it anyway Very Happy
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
stemsee


Joined: 27 Jun 2013
Posts: 344
Location: London

PostPosted: Sat 02 Aug 2014, 14:00    Post subject:  

ok cheers!
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0392s ][ Queries: 11 (0.0031s) ][ GZIP on ]