sunaku / home

🏡 My $HOME directory (dot files & bin scripts)
https://sunaku.github.io/about.html#unix-shell-environment
139 stars 16 forks source link

How do I use the bin/project* scripts? #2

Closed certa1n closed 4 years ago

certa1n commented 8 years ago

Hello. Possible a small instructions abou use your any scripts?

project-release-notes project-version-commit project-version-update git-tag-versions

Thank you!

sunaku commented 8 years ago

Sure, I use those project-* scripts to generate release notes for my md2man, binman, tork, and dasht projects. Let's take the latter as an example:

  1. Clone dasht:

    git clone https://github.com/sunaku/dasht.git
    cd dasht/
  2. Preview the release notes for the upcoming release:

    project-release-notes VERSION.md
  3. Insert the new release notes at the top of the history file (VERSION.md in this case):

    vim VERSION.md
    :0r! project-release-notes %
    :wq
  4. Update all mentions of the old release to the new release:

    project-version-update VERSION.md
  5. Inspect the changes and stage them for committing if correct:

    git diff
    git add -u
  6. Commit the new release:

    project-version-commit VERSION.md
  7. You can now publish the new release whenever you're ready:

    git push && git push --tags
certa1n commented 8 years ago

Thank you!

sunaku commented 4 years ago

Note that I renamed all of these scripts to floss-* in commit fa687eff22857a5ba1de0d44a19bfe878a4a4487, as follows: