Skip to content

Make it easier to execute commands in the release notes #62

@thewtex

Description

@thewtex

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/

Metadata

Metadata

Assignees

Labels

type:DocumentationDocumentation improvement or changetype:InfrastructureInfrastructure/ecosystem related changes, such as CMake or buildbots

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions