Skip to content

Commit

Permalink
ether-wake: Install for etherwake as well
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 31, 2018
1 parent ed24bbc commit b6903bc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions completions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dpkg-reconfigure
dropdb
dropuser
edquota
etherwake
f77
f95
filebucket
Expand Down
5 changes: 5 additions & 0 deletions completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ CLEANFILES = \
dropdb \
dropuser \
edquota \
etherwake \
f77 \
f95 \
filebucket \
Expand Down Expand Up @@ -732,6 +733,10 @@ symlinks: $(targetdir) $(DATA)
rm -f $(targetdir)/$$file && \
$(LN_S) dpkg $(targetdir)/$$file ; \
done
for file in etherwake ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) ether-wake $(targetdir)/$$file ; \
done
for file in mailsnarf msgsnarf ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) filesnarf $(targetdir)/$$file ; \
Expand Down
2 changes: 1 addition & 1 deletion completions/ether-wake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ _ether_wake()

_mac_addresses
} &&
complete -F _ether_wake ether-wake
complete -F _ether_wake ether-wake etherwake

# ex: filetype=sh
1 change: 1 addition & 0 deletions test/completion/etherwake.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assert_source_completions etherwake
18 changes: 18 additions & 0 deletions test/lib/completions/etherwake.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
proc setup {} {
save_env
}


proc teardown {} {
assert_env_unmodified
}


setup


assert_complete_any "etherwake -"
sync_after_int


teardown

0 comments on commit b6903bc

Please sign in to comment.