Skip to content

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

Closed

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/

Activity

  1. added
    type:Documentation
    on Sep 10, 2018
  2. self-assigned this
    on Sep 10, 2018
  3. added
    type:Infrastructure
    on Sep 10, 2018
  4. jcfr commented on Sep 10, 2018

    @jcfr
    Contributor

    Similarly, set of commands could be listed as:

       $ git checkout release && \
         git reset --hard origin/release && \
         git merge --ff-only v$version && \
         git push origin release && \
         git checkout master
    

    instead of

       $ git checkout release
       $ git reset --hard origin/release
       $ git merge --ff-only v$version
       $ git push origin release
       $ git checkout master
    

    It allows to copy paste the whole block

  5. stale commented on Feb 13, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  6. added
    status:Use_Milestone_Backlog
    on Feb 13, 2019
  7. thewtex commented on Feb 13, 2019

    @thewtex
    MemberAuthor

    We will still shoot for this in the ITK 5 release.

  8. removed
    status:Use_Milestone_Backlog
    on Feb 13, 2019
  9. added this to the ITK v5.0rc02 milestone on Feb 13, 2019
  10. added 3 commits that reference this issue on Dec 26, 2020
    0460c81
    204bfc9
    ee51ee1
  11. added 3 commits that reference this issue on Apr 19, 2026
  12. added 9 commits that reference this issue on May 6, 2026
    53bb33a
    3faeb4c
    31501e2
    03919eb
    d76d13e
    48b3111
    a637e0d
    d8cf7bf
    c0700ee
  13. added a commit that references this issue on May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:Documentationtype:Infrastructure

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions