Skip to content

Commit

Permalink
Auto commit without commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Oct 10, 2016
1 parent 909e653 commit 2bf54eb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions bin/debops-optimize
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extend
s/`([[:alnum:]_-]+\.[[:alnum:]_-]+)`_/\1_/g;
s/``(debops\.[[:alnum:]_-]+)``/\1_/g;
s/``(ypid\.[[:alnum:]_-]+)``/\1_/g;
s/([^[:alnum:]`@_]\b(:?drybjed|ypid|ganto|htgoebel|nickjj|scibi|do3cc|AnBuKu|thiagotalma|jacksingleton|ser|yuvadm|pedroluislopez|patrickheeney|le9i0nx))([^[:alnum:]\/@_.>:-])/\1_\3/g;
s/\*\*(drybjed|ypid|ganto|htgoebel|nickjj|scibi|do3cc|AnBuKu|thiagotalma|jacksingleton|ser|yuvadm|pedroluislopez|patrickheeney|le9i0nx)\*\*/\1_/g;
s/([^[:alnum:]`@_]\b(:?drybjed|ypid|ganto|htgoebel|nickjj|scibi|do3cc|AnBuKu|thiagotalma|jacksingleton|ser|yuvadm|pedroluislopez|patrickheeney|le9i0nx|tallandtree))([^[:alnum:]\/@_.>:-])/\1_\3/g;
s/\*\*(drybjed|ypid|ganto|htgoebel|nickjj|scibi|do3cc|AnBuKu|thiagotalma|jacksingleton|ser|yuvadm|pedroluislopez|patrickheeney|le9i0nx|tallandtree)\*\*/\1_/g;
s/([^`])(debops tools)([^`/ ])/\1`DebOps Tools`_\3/gi;
s/The current role maintainer is/The current role maintainer_ is/gi;
s/is drybjed\.$/is drybjed_./gi;
s/\<e\.g\./e. g./g;
s#debops project#DebOps project#gi;
s#(`Semantic Versioning <[^>]+>`_)\b#\1_#g;
Expand All @@ -92,8 +93,13 @@ git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extend
s#Configuration of other Ansible roles#Configuration for other Ansible roles#;
s#This variable is intended to be used in the inventory of the host#This variable is intended to be used in the inventory of hosts#;
s#Ensure specified packages are in there desired state#Ensure specified packages are in their desired state#;
s#This can be used after host is first$#This can be used after a host was first#
s#configuration has not been changed\.$#configuration is already in the desired state.#
'

# Not yet done by default, needs to be tested. Console is too generic.
# s#^(\.\. code-block:: )console#\1shell#;

git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extended -regex '(:?meta/.*\.yml)$' -print0 | \
xargs --null --no-run-if-empty sed --in-place --regexp-extended '
s#GNU General Public License v3#GPL-3.0#;
Expand Down Expand Up @@ -145,7 +151,7 @@ git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extend
## Revert other changes.
git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extended -regex '(:?defaults/.*\.yml|.*\.rst)$' -print0 | \
xargs --null sed --in-place --regexp-extended '
s/:envvar:`((:?bootstrap__admin_system_home|bootstrap__admin_name|bootstrap__admin_manage_existing|owncloud__enable_occ_shortcut|php__pool_default|php__version|inventory__host_environment|inventory__group_environment|inventory__environment|tinc__compression|tinc__connect_to_mesh0|owncloud__subdomain|apt__conditional_whitelist|apt__proxy_bypass_for_bugs_debian_org|apt__sources_sections|apt__update_cache_early|apt__sources_types|apt__http_proxy_url|apt__https_proxy_url))`/``\1``/g;
s/:envvar:`((:?bootstrap__admin_system_home|bootstrap__admin_name|bootstrap__admin_manage_existing|owncloud__enable_occ_shortcut|php__pool_default|php__version|inventory__host_environment|inventory__group_environment|inventory__environment|tinc__compression|tinc__connect_to_mesh0|owncloud__subdomain|apt__conditional_whitelist|apt__proxy_bypass_for_bugs_debian_org|apt__sources_sections|apt__update_cache_early|apt__sources_types|apt__http_proxy_url|apt__https_proxy_url|apt__proxy_url))`/``\1``/g;
'

## Revert changes only for debops-playbooks
Expand Down
2 changes: 1 addition & 1 deletion roles/debops.php
2 changes: 1 addition & 1 deletion roles_ypid/debops.cryptsetup

0 comments on commit 2bf54eb

Please sign in to comment.