Skip to content
Snippets Groups Projects
Commit 68491cef authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4358 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent e32c16e5
No related branches found
No related tags found
No related merge requests found
# 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,17 +41,20 @@ if (test $2 = "status") then ...@@ -41,17 +41,20 @@ 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
for file in *.cpp *.h; do if (test ! -e Package.sh) then
if (test ! -e ../$file) then for file in *.cpp *.h; do
echo " creating src/$file" if (test ! -e ../$file) then
cp $file .. echo " creating src/$file"
elif (test "`diff --brief $file ../$file`" != "") then cp $file ..
echo " updating src/$file" elif (test "`diff --brief $file ../$file`" != "") then
cp $file .. echo " updating src/$file"
fi cp $file ..
done fi
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 ...@@ -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 ...@@ -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
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