Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
74d66869
Commit
74d66869
authored
Dec 02, 2014
by
John Chodera (MSKCC)
Browse files
Debugging issues with packaging script.
parent
4fcf2b16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
devtools/packaging/scripts/linux/package.sh
devtools/packaging/scripts/linux/package.sh
+18
-1
devtools/packaging/scripts/osx/package.sh
devtools/packaging/scripts/osx/package.sh
+2
-1
No files found.
devtools/packaging/scripts/linux/package.sh
View file @
74d66869
...
...
@@ -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
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.
cd
work
# DEBUG
echo
"DEBUG 1"
pwd
ls
-ltr
.
# END DEBUG
# Clean up.
rm
-rf
$PACKAGE_DIR
# Make a directory to contain packaged source distribution
echo
"DEBUG 3"
mkdir
$PACKAGE_DIR
mkdir
$PACKAGE_DIR
/
$PACKAGE_SUBDIR
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
"
echo
$CMD
`
$CMD
`
...
...
@@ -31,12 +47,13 @@ echo $CMD
# Make Python source distribution.
echo
"Building Python source distribution..."
pushd
.
cd
build
make PythonSdist
cd
python/dist
tar
zxf OpenMM-
${
VERSION
}
.tar.gz
mv
OpenMM-
${
VERSION
}
python
cd
../../..
popd
cp
-r
build/python/dist/python
$PACKAGE_DIR
/
$PACKAGE_SUBDIR
# Create archives.
...
...
devtools/packaging/scripts/osx/package.sh
View file @
74d66869
...
...
@@ -28,12 +28,13 @@ echo $CMD
# Make Python source distribution.
echo
"Building Python source distribution..."
pushd
.
cd
build
make PythonSdist
cd
python/dist
tar
zxf OpenMM-
${
VERSION
}
.tar.gz
mv
OpenMM-
${
VERSION
}
python
cd
../../..
popd
cp
-r
build/python/dist/python
$PACKAGE_DIR
/
$PACKAGE_SUBDIR
# Create archives.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment