Hi, I'm trying to use apenwarr/redo with GNAT (GCC Ada). I have the following
setup:
#
default.o.do
gnatgcc -c -O2 $2.adb -gnata -o /dev/stdout
#all.do
redo-ifchange myprog
#myprog.do
FILES=main
FILES_ADB=$(echo $FILES | sed -e's/\(\<\S*\>\)/\1.adb/g')
FILES_O=$(echo $FILES | sed -e's/\(\<\S*\>\)/\1.o/g')
echo "$FILES_O" | xargs redo-ifchange
for f in "$FILES"; do
gnatbind $f
done
gnatlink $FILES_ADB -o myprog
The problem is that GNAT doesn't seem to like custom extension from $3, nor
/dev/stdout. I'm getting the following message from gnat1:
gnat1: incorrect object file extension
This happens regardless of whether I put /dev/stdout or $3 at the end of the
command in
default.o.do.
Is there any way to trick GNAT into cooperating with redo?
Thanks in advance,
Strahinya Radich