mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
Changes to build for README.md updates
* Make the number of packages in the project easier to find. * Replace `ed` with `awk` in `update_readme()`, the latter being (_arguably_!) more readable/less fragile.
This commit is contained in:
@@ -8,7 +8,7 @@ A collection of language packs for Vim.
|
|||||||
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
|
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
|
||||||
|
|
||||||
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
|
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
|
||||||
- It **installs and updates 100+ times faster** than 100+ packages it consists of.
|
- It **installs and updates 100+ times faster** than the <!--Package Count-->114<!--/Package Count--> packages it consists of.
|
||||||
- Solid syntax and indentation support (other features skipped). Only the best language packs.
|
- Solid syntax and indentation support (other features skipped). Only the best language packs.
|
||||||
- All unnecessary files are ignored (like enormous documentation from php support).
|
- All unnecessary files are ignored (like enormous documentation from php support).
|
||||||
- No support for esoteric languages, only most popular ones (modern too, like `slim`).
|
- No support for esoteric languages, only most popular ones (modern too, like `slim`).
|
||||||
@@ -42,6 +42,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
|
|
||||||
## Language packs
|
## Language packs
|
||||||
|
|
||||||
|
<!--Language Packs-->
|
||||||
- [ansible](https://github.com/pearofducks/ansible-vim) (syntax, indent, ftplugin)
|
- [ansible](https://github.com/pearofducks/ansible-vim) (syntax, indent, ftplugin)
|
||||||
- [apiblueprint](https://github.com/sheerun/apiblueprint.vim) (syntax)
|
- [apiblueprint](https://github.com/sheerun/apiblueprint.vim) (syntax)
|
||||||
- [applescript](https://github.com/mityu/vim-applescript) (syntax, indent)
|
- [applescript](https://github.com/mityu/vim-applescript) (syntax, indent)
|
||||||
@@ -156,6 +157,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
- [xls](https://github.com/vim-scripts/XSLT-syntax) (syntax)
|
- [xls](https://github.com/vim-scripts/XSLT-syntax) (syntax)
|
||||||
- [yaml](https://github.com/stephpy/vim-yaml) (syntax, ftplugin)
|
- [yaml](https://github.com/stephpy/vim-yaml) (syntax, ftplugin)
|
||||||
- [yard](https://github.com/sheerun/vim-yardoc) (syntax)
|
- [yard](https://github.com/sheerun/vim-yardoc) (syntax)
|
||||||
|
<!--/Language Packs-->
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
|
|||||||
30
build
30
build
@@ -127,17 +127,27 @@ copy_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_readme() {
|
update_readme() {
|
||||||
ed README.md <<- EOF
|
local tf of
|
||||||
/Language packs
|
tf="$(mktemp)"
|
||||||
+2kb
|
of="$(mktemp)"
|
||||||
/##
|
sort <<<"$OUTPUT" | grep -vxE '[[:space:]]*' > "$of"
|
||||||
'b,-2c
|
|
||||||
$(echo -n "$OUTPUT" | sort)
|
|
||||||
.
|
|
||||||
w
|
|
||||||
q
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
awk 'suppress == 0 {
|
||||||
|
gsub(/<!--Package Count-->[^<]*<!--\/Package Count-->/,
|
||||||
|
"<!--Package Count-->'"$(awk 'END {print NR}' "$of")"'<!--/Package Count-->");
|
||||||
|
print;
|
||||||
|
}
|
||||||
|
/<!--Language Packs-->/ {
|
||||||
|
suppress = 1;
|
||||||
|
while ( ( getline line < "'"$of"'" ) > 0 ) {
|
||||||
|
print line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/<!--\/Language Packs-->/ {
|
||||||
|
suppress = 0;
|
||||||
|
print;
|
||||||
|
}' "README.md" >"$tf"
|
||||||
|
mv "$tf" "README.md"
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKS="
|
PACKS="
|
||||||
|
|||||||
Reference in New Issue
Block a user