Created by gh-md-toc
make once
make README.md
./helper.mk install
Currently tied to debian
staff
group (no need to sudo to install in /usr/local
if
$USER
is in staff
group)
helper
Then cut-and-paste required lines
helper env
For PATH, GPG_AGENT_INFO, SSH_AUTH_SOCK, etc...
helper git_env
For GIT_PAGER, GIT_EDITOR, etc...
helper ansible_env
For ANSIBLE_STDOUT_CALLBACK
helper ansible/help GIT_CLONE_BASE=$SOMEDIR
For initial ansible
clone, then
helper ansible
To invoke ansible
env-setup for default version
helper git
To choose git
identity to use and some history lines
helper git-config
To config locally using a playbook
helper init-play-dir
To create a playbook dir skeleton using a playbook
helper hg2git hg="" 2git=""
helper run hg2git hg="" 2git=""
To prepare a Mercurial to git migration using a playbook
github-helper.mk
Provides:
- github [epi|thy] list/[all|forked|mine]
- github [epi|thy] create/[]
- github [epi|thy] clone/$existing-repo
git-index-filter.mk
Provides:
- git-move-whole-tree-in-subdir
- git-rename-top-subdir
- git-merge-top-subdir
See Grip
grip -b
build-ansible.mk allow to build and install a ansible debian package
The First run on a worksation where all needed packages to build ansible are already installed will also generate a list of packages to install to successfully build ansible on a fresh debian install with similar debian release.
e.g.
First, clone or pull an ansible version
use-ansible help
(cd ~/usr/ext; git clone --branch stable-2.3 --recursive git://github.com/ansible/ansible.git ansible-stable-2.3)
(cd ~/usr/ext/ansible-stable-2.3; git pull --rebase; git submodule update --init --recursive)
Then, instead of running fromt sources
source ~/usr/ext/ansible-stable-2.3/hacking/env-setup -q
Use build-ansible.mk
build-ansible.mk once
build-ansible.mk deb-src
build-ansible.mk buildpackage
build-ansible.mk install
Or
build-ansible.mk main
You can set GIT_CLONE_BASE
and GIT_ANSIBLE_VERSION
./helper.mk install
git-dates help
targets: restore-dates touch-dirs propagate-date config help
targets: targets (including phony ones) run commands
restore-dates: Set modification time of working files to either commiter (default) or author date
touch-dirs: Set modification time of working dir to begining of time So that propagate-date works correctly
propagate-date: propagate date of newest entry of each dirs up to top dir
config: Do not quote non ascii char in file name
help: This help
meta-targets: dates
meta-targets: meta-targets are sequence of targets
dates: restore-dates touch-dirs propagate-date
pseudo-targets: run author
pseudo-targets: pseudo-targets set paramaters and must be given before targets
run: All targets default to dry-run mode, run modifier go run-mode
author: Use git author date instead of committer date
./helper.mk install
git-md once
to get gh-md-tocgit-md README.md
to add a TOC toREADME-notoc.md
where generated TOC will replace#include README-toc.md
line