In the release documentation, ITK/Documentation/Release.md make it easier to copy and execute commands.
- Remove
$ from shell commands
- For long, multi-line commands, create short scripts inline, e.g.
cat << REMOTE_SCRIPT_EOF > /tmp/itk_linux_release.sh
set -ex
cd ~/Packaging/ITKPythonPackage
git reset --hard HEAD
git fetch origin
git checkout v$version
git clean -fdx
/home/kitware/Support/skbuild-venv/bin/python setup.py sdist --formats=gztar,zip
./scripts/dockcross-manylinux-build-wheels.sh
tar cvzf /tmp/dist-linux.tar.gz ./dist
rm dist/*
cd ..
./ITKPythonPackage/scripts/dockcross-manylinux-build-tarball.sh
REMOTE_SCRIPT_EOF
ssh $metroplex 'bash -s' < /tmp/itk_linux_release.sh
Suggested by @jcfr
See also the discussion here:
http://review.source.kitware.com/#/c/23699/
In the release documentation,
ITK/Documentation/Release.mdmake it easier to copy and execute commands.$from shell commandsSuggested by @jcfr
See also the discussion here:
http://review.source.kitware.com/#/c/23699/