Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve extension extraction documentation (#24590)
Peter Trippcf9661a56ba7
diff --git a/extensions/EXTRACTION.md b/extensions/EXTRACTION.mdindex 09fed7970d8..35b33514cc2 100644--- a/extensions/EXTRACTION.md+++ b/extensions/EXTRACTION.md@@ -112,11 +112,19 @@ OLD_VERSION=$(grep '^version = ' extension.toml | cut -d'"' -f2)NEW_VERSION=$(echo "$OLD_VERSION" | awk -F. '{$NF = $NF + 1;} 1' OFS=.)echo $OLD_VERSION $NEW_VERSIONperl -i -pe "s/$OLD_VERSION/$NEW_VERSION/" extension.toml+perl -i -pe "s#https://github.com/zed-industries/zed#https://github.com/zed-extensions/${LANGNAME}#g" extension.toml# if there's rust code, update this too.-test -f Cargo.toml && perl -i -pe "s/$OLD_VERSION/$NEW_VERSION/" cargo.toml+test -f Cargo.toml && perl -i -pe "s/$OLD_VERSION/$NEW_VERSION/" Cargo.toml+# remove workspace Cargo.toml lines+test -f Cargo.toml && perl -ni -e 'print unless /^.*(workspace\s*=\s*true|\[lints\])\s*$/' Cargo.tomltest -f Cargo.toml && cargo check+# add a .gitignore+echo "target/+grammars/+*.wasm" > .gitignore+# commit and pushgit add -ugit checkout -b "bump_${NEW_VERSION}"