File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
abinfo "Setting asg as ast-grep symlink ..."
2
2
ln -sv ast-grep "$PKGDIR"/usr/bin/asg
3
3
4
- abinfo "Removing xtask binary ..."
5
- rm -fv "$PKGDIR"/usr/bin/xtask
4
+ abinfo "Generating shell completions ..."
5
+ for i in bash fish zsh; do
6
+ "$PKGDIR"/usr/bin/ast-grep completions $i \
7
+ > "$SRCDIR"/ast-grep.$i
8
+ "$PKGDIR"/usr/bin/asg completions $i \
9
+ > "$SRCDIR"/asg.$i
10
+ done
6
11
7
- abinfo "Installing completions ..."
12
+ abinfo "Installing shell completions ..."
8
13
mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions
9
- "$PKGDIR"/usr/bin/ast-grep completions > "$PKGDIR"/usr/share/bash-completion/completions/ast-grep
10
- "$PKGDIR"/usr/bin/asg completions > "$PKGDIR"/usr/share/bash-completion/completions/asg
14
+ for i in ast-grep asg; do
15
+ install -Dvm644 "$SRCDIR"/${i}.bash \
16
+ "$PKGDIR"/usr/share/bash-completion/completions/${i}
17
+ install -Dvm644 "$SRCDIR"/${i}.fish \
18
+ "$PKGDIR"/usr/share/fish/vendor_completions.d/${i}.fish
19
+ install -Dvm644 "$SRCDIR"/${i}.zsh \
20
+ "$PKGDIR"/usr/share/zsh/site-functions/_${i}
21
+ done
Original file line number Diff line number Diff line change 1
- VER=0.38.2
1
+ VER=0.39.6
2
2
SRCS="git::commit=tags/$VER::https://github.com/ast-grep/ast-grep"
3
3
CHKSUMS="SKIP"
4
4
CHKUPDATE="anitya::id=361439"
You can’t perform that action at this time.
0 commit comments