# 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
- ./gen-one.sh $dir
+ # Note: gen-one.sh already prints errors.
+ ./gen-one.sh "$1" "$dir" || exit
fi
fi
done