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
"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "70ba177d431a7f8fa5039266c0f6035f367e530a"
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
...
@@ -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.
...
...
devtools/packaging/scripts/osx/package.sh
View file @
74d66869
...
@@ -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.
...
...
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