tests: error_syntax errors on `? now
[nit.git] / contrib / neo_doxygen / gen-all.sh
index be5ff21..4a19e9a 100755 (executable)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# ./gen-all.sh directory
+# ./gen-all.sh <source_language> <directory>
 #
 # Document all projects in the specified directory.
 #
 # Also, every project must include the Doxygen XML output in its `doxygen/xml`
 # directory.
 
-NEO_DOXYGEN="${PWD}/bin/neo_doxygen"
-NX="${PWD}/../../bin/nx"
-
-for dir in "$1"/*; do
+for dir in "$2"/*; do
        if [ -d "$dir" ]; then
                if [ -f "$dir/.nx_config" ]; then
                        # Note: gen-one.sh already prints errors.
-                       ./gen-one.sh "$dir" || exit
+                       ./gen-one.sh "$1" "$dir" || exit
                fi
        fi
 done