10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-13 09:34:02 +01:00
quantum_package/scripts/create_module.sh

29 lines
517 B
Bash
Raw Normal View History

2014-04-03 01:45:22 +02:00
#!/bin/bash
#
# usage:
# create_module.sh MOs AOs Electrons
# Prepares all the files for the creation of a new module.
# The first argument is the name of the module
# All remaining aruments are dependencies.
# Thu Apr 3 01:44:58 CEST 2014
MODULE=$1
shift
DEPS=$@
# Check if module already exists
if [ -d ${MODULE} ]
then
echo "Error: Module $MODULE already exists"
exit 1
fi
# Create module directory and go into it
mkdir ${MODULE}
cd ${MODULE}
# Create the Makefile
2014-04-03 01:50:22 +02:00
${QPACKAGE_ROOT}/create_Makefile.sh
2014-04-03 01:45:22 +02:00