2014-04-03 13:59:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Creates the initial NEEDED_MODULES file.
|
|
|
|
# This script is supposed to run in a module directory.
|
|
|
|
# Thu Apr 3 13:38:38 CEST 2014
|
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
2014-04-03 13:59:51 +02:00
|
|
|
then
|
2015-03-25 23:03:51 +01:00
|
|
|
print "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
print "Please reload the quantum_package.rc file."
|
|
|
|
exit -1
|
2014-04-03 13:59:51 +02:00
|
|
|
fi
|
2015-03-25 23:03:51 +01:00
|
|
|
source ${QPACKAGE_ROOT}/scripts/qp_include.sh
|
|
|
|
|
|
|
|
check_current_dir_is_module
|
2014-04-03 13:59:51 +02:00
|
|
|
|
2015-05-04 15:36:58 +02:00
|
|
|
OUTPUT=$(module_handler.py check_dependencies $@)
|
2015-05-04 17:26:41 +02:00
|
|
|
|
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
|
|
|
echo $@ > NEEDED_CHILDREN_MODULES
|
|
|
|
fi
|