File: examples.sh

package info (click to toggle)
autodep8 0.24
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 228 kB
  • sloc: sh: 984; makefile: 28
file content (13 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
set -e

autodep8=$(readlink -f $(dirname $0)/autodep8)
mkdir -p tmp/doc
echo
grep -v '^#' examples.in | \
while read pkgtype pkg; do
  (cd tmp/doc && apt-get source "$pkg") >> tmp/doc/${pkg}.log
  echo "## $pkgtype ($pkg)"
  echo
  (cd $(dirname tmp/doc/"$pkg"*/debian) && rm -rf debian/tests && $autodep8) | sed -e 's/^/    /'
  echo
done