Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Run command based on OS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrej Mitrovic  
View profile  
 More options Nov 13 2012, 1:20 am
From: Andrej Mitrovic <andrej.mitrov...@gmail.com>
Date: Mon, 12 Nov 2012 22:20:11 -0800 (PST)
Local: Tues, Nov 13 2012 1:20 am
Subject: Run command based on OS

I would like to have a *SciTEDirectory.properties* file, but run one or
another command based on which operating system Scite is running on. For
example:

# pseudocode
command.go.*.d=$(WIN) ? $(ENV_VAR)\build\build.bat :
$(ENV_VAR)/build/build.sh

Are there any tricks I could use to achieve something like this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Panter  
View profile  
 More options Nov 13 2012, 1:26 am
From: Martin Panter <vadmium...@gmail.com>
Date: Tue, 13 Nov 2012 06:26:17 +0000
Local: Tues, Nov 13 2012 1:26 am
Subject: Re: [scite] Run command based on OS
On 13 November 2012 06:20, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote:

> I would like to have a SciTEDirectory.properties file, but run one or
> another command based on which operating system Scite is running on. For
> example:

> # pseudocode
> command.go.*.d=$(WIN) ? $(ENV_VAR)\build\build.bat :
> $(ENV_VAR)/build/build.sh

> Are there any tricks I could use to achieve something like this?

Does the PLAT_GTK / PLAT_WIN stuff work in this case? I never used the
directory files or command.go but maybe try something like

if PLAT_WIN
        command.go.*.d=. . ./build.bat
if PLAT_GTK  # or maybe PLAT_UNIX
        command.go.*.d=. . ./build.sh

I think the indentation is required.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
steve donovan  
View profile  
 More options Nov 13 2012, 1:34 am
From: steve donovan <steve.j.dono...@gmail.com>
Date: Tue, 13 Nov 2012 08:34:30 +0200
Local: Tues, Nov 13 2012 1:34 am
Subject: Re: [scite] Run command based on OS

On Tue, Nov 13, 2012 at 8:26 AM, Martin Panter <vadmium...@gmail.com> wrote:
> if PLAT_WIN
>         command.go.*.d=. . ./build.bat
> if PLAT_GTK  # or maybe PLAT_UNIX
>         command.go.*.d=. . ./build.sh

That's exactly how different compilers are selected by platform - look
at the end of cpp.properties

steve d.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrej Mitrovic  
View profile  
 More options Nov 13 2012, 12:52 pm
From: Andrej Mitrovic <andrej.mitrov...@gmail.com>
Date: Tue, 13 Nov 2012 09:52:41 -0800 (PST)
Local: Tues, Nov 13 2012 12:52 pm
Subject: Re: Run command based on OS
On Nov 13, 7:26 am, Martin Panter <vadmium...@gmail.com> wrote:

> if PLAT_WIN
>         command.go.*.d=. . ./build.bat
> if PLAT_GTK  # or maybe PLAT_UNIX
>         command.go.*.d=. . ./build.sh

> I think the indentation is required.

Awesome, thanks!

It's documented under the "Importing properties files and conditional
logic" section but I wasn't able to find it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »