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 Wed 19 Sep 2018, 09:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Interpreted Herdocs?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 1125

PostPosted: Sun 27 May 2018, 00:14    Post subject:  Interpreted Herdocs?  

I was wondering if I could put something like the following inside a heredoc:
Code:

$(case $GCC_VERSION in
   1); echo "id /var/lib/tazpkg/installed/gcc
             id /var/lib/tazpkg/installed/gcc-lib-base
             id /var/lib/tazpkg/installed/gcc-lib-math"; ;;;
   3); echo "id /var/lib/tazpkg/installed/gcc3"; ;;;
   49); echo "id /var/lib/tazpkg/installed/gcc49
              id /var/lib/tazpkg/installed/gcc49-lib-base"; ;;;
   54); echo "id /var/lib/tazpkg/installed/gcc54
              id /var/lib/tazpkg/installed/gcc54-lib-base"; ;;;
   64); echo "id /var/lib/tazpkg/installed/gcc54
              id /var/lib/tazpkg/installed/gcc54-lib-base"; ;;;
  )

so that I get a different string depending on the variable GCC_VERSION.

If your curious I'm working on a script to install the packages that I want for TazPup and hopefully to also build a devX (See Post)

Anyway, I'm going to give it a try and I'll report back on whether or not it works.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4832
Location: Kingwood, TX

PostPosted: Sun 27 May 2018, 21:06    Post subject:  

This thread may be useful. It is designed for localization, but the same concepts apply.
_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 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.0240s ][ Queries: 11 (0.0031s) ][ GZIP on ]