File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,19 @@ OLD_VERSION=$(grep '^version = ' extension.toml | cut -d'"' -f2)
112112NEW_VERSION=$( echo " $OLD_VERSION " | awk -F. ' {$NF = $NF + 1;} 1' OFS=.)
113113echo $OLD_VERSION $NEW_VERSION
114114perl -i -pe " s/$OLD_VERSION /$NEW_VERSION /" extension.toml
115+ perl -i -pe " s#https://github.com/zed-industries/zed#https://github.com/zed-extensions/${LANGNAME} #g" extension.toml
115116
116117# if there's rust code, update this too.
117- test -f Cargo.toml && perl -i -pe " s/$OLD_VERSION /$NEW_VERSION /" cargo.toml
118+ test -f Cargo.toml && perl -i -pe " s/$OLD_VERSION /$NEW_VERSION /" Cargo.toml
119+ # remove workspace Cargo.toml lines
120+ test -f Cargo.toml && perl -ni -e ' print unless /^.*(workspace\s*=\s*true|\[lints\])\s*$/' Cargo.toml
118121test -f Cargo.toml && cargo check
119122
123+ # add a .gitignore
124+ echo " target/
125+ grammars/
126+ *.wasm" > .gitignore
127+
120128# commit and push
121129git add -u
122130git checkout -b " bump_${NEW_VERSION} "
You can’t perform that action at this time.
0 commit comments