create.pl (7e90fac2) | create.pl (e4af8f11) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 18 unchanged lines hidden (view full) --- 27chomp $in; 28if ($ENV{OS} eq 'LINUX') { 29 1 while $in =~ s!\s+-I\s*[^/]\S*\s*! !g; # discard relative includes 30 $in =~ s!(\s+-I\s*)$solarversion(\S*)!$1\${SOLARVERSION}$2!og; 31 # macrofy includes to solver 32 $in =~ s!\s+-o\s*\S+! -o /dev/null! || die 'bad input: no -o'; 33 $in =~ s!\S+/testhxx.cxx!-x c++ /proc/self/fd/0! 34 || die 'bad input: no source file'; | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 18 unchanged lines hidden (view full) --- 27chomp $in; 28if ($ENV{OS} eq 'LINUX') { 29 1 while $in =~ s!\s+-I\s*[^/]\S*\s*! !g; # discard relative includes 30 $in =~ s!(\s+-I\s*)$solarversion(\S*)!$1\${SOLARVERSION}$2!og; 31 # macrofy includes to solver 32 $in =~ s!\s+-o\s*\S+! -o /dev/null! || die 'bad input: no -o'; 33 $in =~ s!\S+/testhxx.cxx!-x c++ /proc/self/fd/0! 34 || die 'bad input: no source file'; |
35 print STDOUT '#!/bin/bash', "\n"; | 35 print STDOUT '#!/bin/sh', "\n"; |
36 print STDOUT $in, 37 ' <<<"#include \\"`echo $(if [ ${1%/*} != $1 ];then cd ${1%/*};fi;', 38 '/bin/pwd)/${1##*/}`\\""', "\n"; 39} elsif ($ENV{OS} eq 'SOLARIS') { 40 1 while $in =~ s!\s+-I\s*[^/]\S*\s*! !g; # discard relative includes 41 $in =~ s!(\s+-I\s*)$solarversion(\S*)!$1\${SOLARVERSION}$2!og; 42 # macrofy includes to solver 43 $in =~ s!\s+-o\s*\S+! -o /dev/null! || die 'bad input: no -o'; --- 78 unchanged lines hidden --- | 36 print STDOUT $in, 37 ' <<<"#include \\"`echo $(if [ ${1%/*} != $1 ];then cd ${1%/*};fi;', 38 '/bin/pwd)/${1##*/}`\\""', "\n"; 39} elsif ($ENV{OS} eq 'SOLARIS') { 40 1 while $in =~ s!\s+-I\s*[^/]\S*\s*! !g; # discard relative includes 41 $in =~ s!(\s+-I\s*)$solarversion(\S*)!$1\${SOLARVERSION}$2!og; 42 # macrofy includes to solver 43 $in =~ s!\s+-o\s*\S+! -o /dev/null! || die 'bad input: no -o'; --- 78 unchanged lines hidden --- |