cleanup [Gerardo]

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@427 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
ballabio 2003-11-21 16:39:48 +00:00
parent 4cf261a909
commit 6596e1983b
3 changed files with 44 additions and 42 deletions

View File

@ -1,11 +1,17 @@
#!/bin/sh
# compute dependencies
# run from directory where this script is
cd `echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname
TOPDIR=`pwd`
# directory that only depends on itself
cd $TOPDIR/Modules
$TOPDIR/moduledep.sh > .dependencies
DIR="Modules"
DEPENDS=""
if test -d $TOPDIR/$DIR ; then
cd $TOPDIR/$DIR
$TOPDIR/moduledep.sh $DEPENDS > .dependencies
fi
# directories that depend on Modules/
DIRS="PW FPMD CPV flib"

View File

@ -1,54 +1,44 @@
#!/bin/sh
#
# compute dependencies
INSTALL=install
#
make moduledep.x
#
# Dipendencies on modules contained in Modules/
#
# directory that only depends on itself
cd ../Modules
rm -f .dependencies
touch .dependencies
ls *.f90 > dum1
ls *.f90 > dum2
../$INSTALL/moduledep.x dum1 dum2 >> .dependencies
#
# Directories that contain dependencies on modules in ./ and Modules/
#
ls *.f90 > tmp1
ls *.f90 > tmp2
../$INSTALL/moduledep.x tmp1 tmp2 > .dependencies
# directories that depend on Modules/
DIRS="PW FPMD CPV flib"
for DIR in $DIRS ; do
if test -d ../$DIR ; then
cd ../$DIR
rm -f .dependencies
touch .dependencies
ls *.f90 > dum1
ls *.f90 ../Modules/*.f90 > dum2
../$INSTALL/moduledep.x dum1 dum2 >> .dependencies
ls *.f90 > tmp1
ls *.f90 ../Modules/*.f90 > tmp2
../$INSTALL/moduledep.x tmp1 tmp2 > .dependencies
fi
done
#
# Directories that contain dependencies on modules in ./, Modules/, PW/
#
# directories that depend on Modules/, PW/
DIRS="PP PWCOND PWNC Gamma PH NEB"
for DIR in $DIRS ; do
if test -d ../$DIR ; then
cd ../$DIR
rm -f .dependencies
touch .dependencies
ls *.f90 > dum1
ls *.f90 ../PW/*.f90 ../Modules/*.f90 > dum2
../$INSTALL/moduledep.x dum1 dum2 >> .dependencies
ls *.f90 > tmp1
ls *.f90 ../PW/*.f90 ../Modules/*.f90 > tmp2
../$INSTALL/moduledep.x tmp1 tmp2 > .dependencies
fi
done
#
# Directories that contain dependencies on modules in ./, Modules/, PW/, PH/
#
DIR=D3
# directories that depend on Modules/, PW/, PH/
DIRS="D3"
for DIR in $DIRS ; do
if test -d ../$DIR ; then
cd ../$DIR
rm -f .dependencies
touch .dependencies
ls *.f90 > dum1
ls *.f90 ../PW/*.f90 ../PH/*.f90 ../Modules/*.f90 > dum2
../$INSTALL/moduledep.x dum1 dum2 >> .dependencies
ls *.f90 > tmp1
ls *.f90 ../PW/*.f90 ../PH/*.f90 ../Modules/*.f90 > tmp2
../$INSTALL/moduledep.x tmp1 tmp2 > .dependencies
fi
done

View File

@ -1,11 +1,17 @@
#!/bin/sh
# compute dependencies
# run from directory where this script is
cd `echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname
TOPDIR=`pwd`
# directory that only depends on itself
cd $TOPDIR/Modules
$TOPDIR/moduledep.sh > .dependencies
DIR="Modules"
DEPENDS=""
if test -d $TOPDIR/$DIR ; then
cd $TOPDIR/$DIR
$TOPDIR/moduledep.sh $DEPENDS > .dependencies
fi
# directories that depend on Modules/
DIRS="PW FPMD CPV flib"