Skip to content
Snippets Groups Projects
Commit 40fbb5ca authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9942 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 78788d69
No related branches found
No related tags found
No related merge requests found
# Install/unInstall package files in LAMMPS # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
echo " updating src/$1"
fi
fi
elif (test ! -z "$2") then
if (test ! -e ../$2) then
rm -f ../$1
fi
fi
}
# all package files with no dependencies
for file in *.cpp *.h; do
action $file
done
# edit 2 Makefile.package files to include/exclude package info # edit 2 Makefile.package files to include/exclude package info
if (test $1 = 1) then if (test $1 = 1) then
...@@ -18,9 +47,6 @@ include ..\/VORONOI\/Makefile.lammps ...@@ -18,9 +47,6 @@ include ..\/VORONOI\/Makefile.lammps
' ../Makefile.package.settings ' ../Makefile.package.settings
fi fi
cp compute_voronoi_atom.h ..
cp compute_voronoi_atom.cpp ..
elif (test $1 = 0) then elif (test $1 = 0) then
if (test -e ../Makefile.package) then if (test -e ../Makefile.package) then
...@@ -31,6 +57,4 @@ elif (test $1 = 0) then ...@@ -31,6 +57,4 @@ elif (test $1 = 0) then
sed -i -e '/^include.*VORONOI.*$/d' ../Makefile.package.settings sed -i -e '/^include.*VORONOI.*$/d' ../Makefile.package.settings
fi fi
rm -f ../compute_voronoi_atom.h
rm -f ../compute_voronoi_atom.cpp
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment