2015-01-15 13:59:12 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Creates the .gitignore file in the Modules to ignore the symlinks
|
|
|
|
#
|
|
|
|
# Tue Jan 13 14:18:05 CET 2015
|
|
|
|
#
|
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
|
|
|
then
|
|
|
|
print "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
print "Please reload the quantum_package.rc file."
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
source ${QPACKAGE_ROOT}/scripts/qp_include.sh
|
|
|
|
|
|
|
|
check_current_dir_is_module
|
|
|
|
|
2015-01-15 13:59:12 +01:00
|
|
|
cat << EOF > .gitignore
|
|
|
|
#
|
|
|
|
# Do not modify this file. Add your ignored files to the gitignore
|
|
|
|
# (without the dot at the beginning) file.
|
|
|
|
#
|
|
|
|
IRPF90_temp
|
|
|
|
IRPF90_man
|
|
|
|
irpf90.make
|
|
|
|
tags
|
|
|
|
Makefile.depend
|
|
|
|
irpf90_entities
|
|
|
|
.gitignore
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if [[ -f gitignore ]]
|
|
|
|
then
|
|
|
|
cat gitignore >> .gitignore
|
|
|
|
fi
|
|
|
|
|
|
|
|
find . -type l | sed "s@./@@" >> .gitignore
|
|
|
|
|