git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4358 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2010-06-28 22:57:46 +00:00
parent e32c16e566
commit 68491cefa0

View File

@ -1,5 +1,5 @@
# Package.sh = package management, called from Makefile # Package.sh = package management, called from Makefile
# Syntax: sh Package.sh DIR status/update/overwrite # Syntax: sh Package.sh DIR status/update/overwrite/regenerate
# style used to translate dir name to package name # style used to translate dir name to package name
@ -41,8 +41,8 @@ if (test $2 = "status") then
elif (test $2 = "update") then elif (test $2 = "update") then
echo "Updating src files from $1 package files" echo "Updating src files from $1 package files"
if (test $installed = 1) then if (test $installed = 1) then
if (test ! -e Package.sh) then
for file in *.cpp *.h; do for file in *.cpp *.h; do
if (test ! -e ../$file) then if (test ! -e ../$file) then
echo " creating src/$file" echo " creating src/$file"
@ -52,6 +52,9 @@ elif (test $2 = "update") then
cp $file .. cp $file ..
fi fi
done done
else
/bin/sh Package.sh
fi
else else
echo " $1 package is not installed, no action" echo " $1 package is not installed, no action"
fi fi
@ -63,7 +66,6 @@ elif (test $2 = "update") then
elif (test $2 = "overwrite") then elif (test $2 = "overwrite") then
echo "Overwriting $1 package files with src files" echo "Overwriting $1 package files with src files"
if (test $installed = 1) then if (test $installed = 1) then
for file in *.cpp *.h; do for file in *.cpp *.h; do
if (test ! -e ../$file) then if (test ! -e ../$file) then
@ -85,5 +87,4 @@ elif (test $2 = "regenerate") then
if (test $installed = 1) then if (test $installed = 1) then
/bin/sh Install.sh 1 /bin/sh Install.sh 1
fi fi
fi fi