mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
8afb5af517
swc_ecma_parser: - Flatten parser test suite ported from `tsc`. swc: - Flatten the reference directory for the `tsc` test suite.
23 lines
475 B
Bash
Executable File
23 lines
475 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script counts the number of files per each directory.
|
|
#
|
|
#
|
|
set -eu
|
|
|
|
find . -type d -empty -delete
|
|
|
|
find . -maxdepth 3 -mindepth 1 -type d | while read dir; do
|
|
if [[ $dir == ./.git* ]]; then
|
|
continue
|
|
fi
|
|
|
|
if git check-ignore "$dir" > /dev/null ; then
|
|
# echo "Ignoring $dir"
|
|
continue
|
|
fi
|
|
|
|
echo "Directory: $dir"
|
|
echo "Dir: $(find $dir -type d | wc -l)"
|
|
echo "File: $(find $dir -type f | wc -l)"
|
|
done |