Files
OpenNetworkLinux/tools/scripts/manifest.sh
Jeffrey Townsend 45dee0c608 Initial.
2015-11-19 22:45:38 +00:00

27 lines
524 B
Bash
Executable File

#!/bin/bash
############################################################
#
# Make sure the local module manifest.mk is generated.
#
############################################################
ONL=$1
BUILDER=$2
QUIET=$3
if [ -z "$ONL" ] || [ -z "$BUILDER" ]; then
echo "usage: $0 onl-dir builder-dir"
exit 1
fi
if [ ! -f "$ONL/.manifest.mk" ]; then
cd "$ONL" && "$BUILDER/tools/manifesttool.py" make
mv "$ONL/Manifest.mk" "$ONL/.manifest.mk"
fi
if [ -z "$QUIET" ]; then
echo "$ONL/.manifest.mk"
fi