Mercurial > vanilla
comparison Scripts/list.sh @ 664:aeee9eaa8221
scripts: add list.sh for easier listing
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 30 Jul 2019 21:10:00 +0200 |
parents | |
children | 034a2a62a9f8 |
comparison
equal
deleted
inserted
replaced
663:a151581a7cb2 | 664:aeee9eaa8221 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # list.sh -- simply list all packages | |
4 # | |
5 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
6 # | |
7 # Permission to use, copy, modify, and/or distribute this software for any | |
8 # purpose with or without fee is hereby granted, provided that the above | |
9 # copyright notice and this permission notice appear in all copies. | |
10 # | |
11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
18 # | |
19 | |
20 alias find="busybox find" | |
21 alias grep="busybox grep" | |
22 alias sed="busybox sed" | |
23 | |
24 TOP=$(realpath $(dirname $0)/../) | |
25 | |
26 ( | |
27 cd $TOP | |
28 find -mindepth 2 -maxdepth 2 -type d | grep -v '\.hg' | sed 's|^\./||' | |
29 ) |