mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-11-27 23:11:20 +08:00
a9b34ecaca
Since .d.elv files are now accessed via Go files that embed them, cmd/md2html needs to be rebuilt whenever one of its dependencies changes.
15 lines
274 B
Bash
Executable File
15 lines
274 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Outputs the dependencies of a command.
|
|
#
|
|
# Must be run from the website directory.
|
|
|
|
go list -f '{{ join .Deps "\n" }}' $1 |
|
|
sed -n '/^src\.elv\.sh/{
|
|
s/^src\.elv\.sh/../
|
|
p
|
|
}' |
|
|
while read dir; do
|
|
echo $dir $dir/*
|
|
done
|