mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-19 04:22:36 +01:00
29 lines
517 B
Bash
Executable File
29 lines
517 B
Bash
Executable File
#!/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
|
|
${QPACKAGE_ROOT}/create_Makefile.sh
|
|
|
|
|