Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an option to get the compiler version, change the manpages accordingly
[simgrid.git] / src / smpi / smpif90.in
index d0f37bb..1a33ba1 100644 (file)
@@ -45,11 +45,13 @@ while [ $# -gt 0 ]; do
             SRCFILE="${TMPFILE}"
             list_add CMDLINE "${SRCFILE}"
             ;;
-        '-version' | '--version' | '-v')
-            # -e is not recognised by MS-DOS...
-            echo -e $SIMGRID_VERSION
+        '-version' | '--version')
+            printf '%b\n' "$SIMGRID_VERSION"
             exit 0
-            ;;           
+            ;;
+        '-compiler-version' | '--compiler-version')
+            ${F90} --version
+            ;;
         *)
             list_add CMDLINE "${ARG}"
             ;;