Skip to content

Commit

Permalink
Merge pull request #57 from IBM/fix/issue_56
Browse files Browse the repository at this point in the history
Fix/issue 56
  • Loading branch information
edmundreinhardt authored Jan 10, 2022
2 parents c124d5b + 33d7199 commit 76bbdec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mk/extractAndLaunch
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ while read -r line; do
# echo "Running $cmd"
cmd="" ;
fi
done < "$pseudoSrcFile"
done < <(grep "" $pseudoSrcFile)
21 changes: 18 additions & 3 deletions mk/extractPseudoSrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@ objlib=$2
objname=$3

cmd=""
result=""

while read -r line; do
line=$(echo "$line" | sed 's/\r//');
if [[ $line = '/*'* ]]; then continue ; fi
if [[ $line = '' ]]; then continue ; fi
cmd+=$(echo "$line " | sed 's/+$//')
done < "$pseudoSrcFile"
if [[ $line =~ .*\+\S* ]]; then
linetmp=$(echo "$line" | sed 's/\+\S*$//');
cmd="${cmd} ${linetmp}";
continue;

fi

cmd+=$line
if [ -n "$cmd" ]; then
result+=$(echo "$cmd" | sed "s/&O/$objlib/g" | sed "s/&N/$objname/g") ;
result+="
" ;
cmd=""
fi
done < <(grep "" $pseudoSrcFile)

echo "$cmd" | sed "s/&O/$objlib/" | sed "s/&N/$objname/"
echo "$result"

0 comments on commit 76bbdec

Please sign in to comment.