"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "70ba177d431a7f8fa5039266c0f6035f367e530a"
Commit 74d66869 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Debugging issues with packaging script.

parent 4fcf2b16
...@@ -9,16 +9,32 @@ export VERSION=$(sed -nr "s/OPENMM_VERSION:STRING=(.*)/\1/p" build/CMakeCache.tx ...@@ -9,16 +9,32 @@ export VERSION=$(sed -nr "s/OPENMM_VERSION:STRING=(.*)/\1/p" build/CMakeCache.tx
export PACKAGE_SUBDIR="OpenMM-${VERSION}-Linux" # directory where distribution will be unpacked export PACKAGE_SUBDIR="OpenMM-${VERSION}-Linux" # directory where distribution will be unpacked
export DISTRO_PREFIX="OpenMM-${VERSION}-Linux" # prefix for source distribution (e.g. ${DISTRIBUTION_NAME}.zip) export DISTRO_PREFIX="OpenMM-${VERSION}-Linux" # prefix for source distribution (e.g. ${DISTRIBUTION_NAME}.zip)
# DEBUG
echo "DEBUG 1"
pwd
ls -ltr .
# END DEBUG
# Perform all work in a work directory. # Perform all work in a work directory.
cd work cd work
# DEBUG
echo "DEBUG 1"
pwd
ls -ltr .
# END DEBUG
# Clean up. # Clean up.
rm -rf $PACKAGE_DIR rm -rf $PACKAGE_DIR
# Make a directory to contain packaged source distribution # Make a directory to contain packaged source distribution
echo "DEBUG 3"
mkdir $PACKAGE_DIR mkdir $PACKAGE_DIR
mkdir $PACKAGE_DIR/$PACKAGE_SUBDIR mkdir $PACKAGE_DIR/$PACKAGE_SUBDIR
for filename in $( cat openmm/devtools/packaging/manifests/binary/manifest.txt ); do for filename in $( cat openmm/devtools/packaging/manifests/binary/manifest.txt ); do
# DEBUG: List contents of each directory.
ls -ltr install/$filename
# END DEBUG
CMD="cp -r install/$filename $PACKAGE_DIR/$PACKAGE_SUBDIR" CMD="cp -r install/$filename $PACKAGE_DIR/$PACKAGE_SUBDIR"
echo $CMD echo $CMD
`$CMD` `$CMD`
...@@ -31,12 +47,13 @@ echo $CMD ...@@ -31,12 +47,13 @@ echo $CMD
# Make Python source distribution. # Make Python source distribution.
echo "Building Python source distribution..." echo "Building Python source distribution..."
pushd .
cd build cd build
make PythonSdist make PythonSdist
cd python/dist cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python mv OpenMM-${VERSION} python
cd ../../.. popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives. # Create archives.
......
...@@ -28,12 +28,13 @@ echo $CMD ...@@ -28,12 +28,13 @@ echo $CMD
# Make Python source distribution. # Make Python source distribution.
echo "Building Python source distribution..." echo "Building Python source distribution..."
pushd .
cd build cd build
make PythonSdist make PythonSdist
cd python/dist cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python mv OpenMM-${VERSION} python
cd ../../.. popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives. # Create archives.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment