diff --git a/.config/git/skel/.gitignore b/.config/git/skel/.gitignore new file mode 120000 index 0000000000000000000000000000000000000000..99ce66c157950812b3cd8c2ff9523a3891a74bce --- /dev/null +++ b/.config/git/skel/.gitignore @@ -0,0 +1 @@ +../ignore \ No newline at end of file diff --git a/.config/git/skel/README.md b/.config/git/skel/README.md new file mode 100644 index 0000000000000000000000000000000000000000..15a742d22a32a0a7a07a81f03868ae0a4155be08 --- /dev/null +++ b/.config/git/skel/README.md @@ -0,0 +1,12 @@ +# PROJECT_NAME + +## License + +This software is licensed under the MIT license (see `LICENSE.txt`). + +## Author Information + +Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my +[website](https://www.shore.co.il/). Patches are welcome via +[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository +is located at: <https://git.shore.co.il/explore/>. diff --git a/.config/git/skel/README.rst b/.config/git/skel/README.rst new file mode 100644 index 0000000000000000000000000000000000000000..c8db61915b98899c949d05ad27d8a3cbc9ba028e --- /dev/null +++ b/.config/git/skel/README.rst @@ -0,0 +1,16 @@ +PROJECT_NAME +############ + +License +------- + +This software is licensed under the AGPL 3+ license (see the :code:`LICENSE.txt` +file). + +Author +------ + +Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website +<https://www.shore.co.il/>`_. Patches are welcome via `git send-email +<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located +at: https://git.shore.co.il/nimrod/. diff --git a/.config/git/skel/VERSION b/.config/git/skel/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..6e8bf73aa550d4c57f6f35830f1bcdc7a4a62f38 --- /dev/null +++ b/.config/git/skel/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/Documents/bin/git-bump b/Documents/bin/git-bump index 5320c8e76fbd0a5de91849c9b67852597f3cf90b..d16d28c4bdef8c20d60c4f4f6082f4ae4f01b756 100755 --- a/Documents/bin/git-bump +++ b/Documents/bin/git-bump @@ -1,7 +1,10 @@ #!/bin/sh set -eu +OLD_VERSION="$(cat VERSION)" semver-bump "$1-release" +NEW_VERSION="$(cat VERSION)" git commit VERSION -m "Bumped $1 version." +git commit --only VERSION --message "Bump version: $OLD_VERSION → $NEW_VERSION" git tag-version git push --follow-tags diff --git a/Documents/bin/git-license b/Documents/bin/git-license new file mode 100755 index 0000000000000000000000000000000000000000..a14e27d78fb0273a7665a7fc18167e4af277a21a --- /dev/null +++ b/Documents/bin/git-license @@ -0,0 +1,5 @@ +#!/bin/sh +set -eu + +license "$@" > LICENSE.txt +git add LICENSE.txt diff --git a/Documents/bin/git-skel b/Documents/bin/git-skel new file mode 100755 index 0000000000000000000000000000000000000000..d0262ba2187656073bdea08b12c1191aec9b6735 --- /dev/null +++ b/Documents/bin/git-skel @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +for i in "$@" +do + cp --dereference --target-directory=./ "$HOME/.config/git/skel/$i" +done +git add "$@"