Update examples to support VMS.

This commit is contained in:
Artur Shepilko
2015-04-21 18:57:37 -05:00
parent c1de12e683
commit 0026610c41
7 changed files with 43 additions and 3 deletions
+9
View File
@@ -1,5 +1,6 @@
import toolset ;
import os ;
project : requirements <tblgen>../tblgen//tblgen ;
@@ -28,3 +29,11 @@ actions tblgen bind COMMAND
{
$(COMMAND:E=tblgen) > $(<)
}
if [ os.name ] = VMS
{
actions tblgen bind COMMAND
{
PIPE MCR $(COMMAND:WE=tblgen) > $(<:W)
}
}
+10
View File
@@ -8,6 +8,8 @@
# which are relevant to your case, remove everything else, and then change names
# and actions to taste.
import os ;
# Declare a new target type. This allows Boost.Build to do something sensible
# when targets with the .verbatim extension are found in sources.
import type ;
@@ -49,3 +51,11 @@ actions inline-file
{
"./inline_file.py" $(<) $(>)
}
if [ os.name ] = VMS
{
actions inline-file
{
python inline_file.py $(<:W) $(>:W)
}
}
+9
View File
@@ -14,6 +14,7 @@ import generators ;
import feature ;
import common ;
import "class" : new ;
import os ;
type.register GCI : gci ;
@@ -75,3 +76,11 @@ actions touch
{
$(TOUCH) $(<)
}
if [ os.name ] = VMS
{
actions touch
{
$(TOUCH) $(<:W)
}
}
+9
View File
@@ -1,5 +1,6 @@
import feature ;
import toolset ;
import os ;
path-constant HERE : . ;
make main.cpp : main_cpp.pro : @do-something ;
@@ -11,3 +12,11 @@ actions do-something
{
"$(PYTHON:E=python)" "$(HERE)/foo.py" "$(>)" "$(<)"
}
if [ os.name ] = VMS
{
actions do-something
{
$(PYTHON:E=python) $(HERE:W)foo.py $(>:W) $(<:W)
}
}
+2 -1
View File
@@ -8,9 +8,10 @@
//
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "Bye!\n";
return 1
return EXIT_FAILURE
}
+2 -1
View File
@@ -8,9 +8,10 @@
//
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "Bye!\n";
return 1;
return EXIT_FAILURE;
}
+2 -1
View File
@@ -8,9 +8,10 @@
//
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "Hi!\n";
return 0;
return EXIT_SUCCESS;
}