compile.sh: Output CREF warnings in compilation warning format.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sat, 17 Mar 2018 18:28:26 +0000 (11:28 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sat, 17 Mar 2018 18:28:26 +0000 (11:28 -0700)
src/cairo/compile.sh
src/devops/compile.sh
src/edwin/compile.sh
src/gl/compile.sh
src/glib/compile.sh
src/gtk-screen/compile.sh
src/gtk/compile.sh
src/imail/compile.sh
src/pango/compile.sh
src/x11-screen/compile.sh
src/x11/compile.sh

index c98d763e5b5bc5e4f951fe12e8b73c62fff86506..7a423c1c7cde7638daf687c7e0b1e1859da8c6ff 100755 (executable)
@@ -49,7 +49,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "cairo")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=cairo-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=cairo-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index f3a20b2a6f17d1db0404eb59e438608ef4584176..78872e75c5423ec38fd576781b53e744f6a0479f 100755 (executable)
@@ -17,4 +17,6 @@ EOF
 suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
 report=devops-$suffix.crf
-if [ -s "$report" ]; then echo "$report:1: warning: not empty"; fi
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%02d:%s\\n\",NR,\$0}" $report
+fi
index 78220ce2beaa60b349d197e6171af254fa9e1b3e..e3c4688249467b81a83f256dac5a739290491540 100755 (executable)
@@ -33,7 +33,9 @@ ${MIT_SCHEME_EXE} --batch-mode <<\EOF
   (load "edwin.sf")
   (load "edwin.cbf"))
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=edwin-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=edwin-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index 82a1136506751aa3022fcd6f8ded29d810eb0e73..b3e668fb0a4df9999c86dc4fe87afe4f7f2e3a97 100755 (executable)
@@ -54,7 +54,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "gl")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=gl-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=gl-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index cf6db26b6cf7293afe98eb73dea27ba03948c9ef..660653a5b00420459bfc86812874c1da44de01db 100755 (executable)
@@ -58,7 +58,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "glib")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=glib-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=glib-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index fbf33dcc9ca3d433a2d852e341505c7afb9b621a..d56ee7fd0b390391a94bcf4efb2042073b27eacb 100755 (executable)
@@ -47,7 +47,9 @@ ${MIT_SCHEME_EXE} --batch-mode <<\EOF
   (cref/generate-constructors "gtk-screen")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=gtk-screen-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=gtk-screen-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index c67d116396d4f4982c3ea81943802944eb8cb591..b18029ee8dbd800fe843aab4e55ce995aba82f1f 100755 (executable)
@@ -67,7 +67,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "gtk")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=gtk-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=gtk-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index 68eccb8e5ff483ecf0b381602009dee05e65b122..c51525d4129040e4346af92dc9f6bdfa56ddfdbe 100755 (executable)
@@ -36,7 +36,9 @@ ${MIT_SCHEME_EXE} --batch-mode <<\EOF
   (load "compile.scm")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=imail-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=imail-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index e9392a153efabf49c05598ddc25141eef6c03306..2921a6d0b8d03f9431ba24f4d3bc0dc8eb02a0b0 100755 (executable)
@@ -45,7 +45,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "pango")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=pango-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=pango-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index 5424ee5fe0bebaf2acff69e0e17a08519ddd3dac..53c364891c75af6bfdbd7742a94db083df301cfa 100755 (executable)
@@ -49,7 +49,9 @@ ${MIT_SCHEME_EXE} --batch-mode <<\EOF
   (cref/generate-constructors "x11-screen")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=x11-screen-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=x11-screen-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi
index 96233bbf8ac3acd4a1efbcbe6e42bc81bb53be28..47351e52efb6a6105f70c7979e980020b9ca03fc 100755 (executable)
@@ -43,7 +43,9 @@ ${MIT_SCHEME_EXE} --prepend-library . --batch-mode <<\EOF
   (cref/generate-constructors "x11")
   )
 EOF
-SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
+suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
-REPORT=x11-$SUFFIX.crf
-if [ -s "$REPORT" ]; then echo "$REPORT:1: warning: not empty"; fi
+report=x11-$suffix.crf
+if [ -s "$report" ]; then
+    awk "{printf \"$report:%d:%s \\n\",NR,\$0}" $report
+fi