Skip to content

Commit 14aa884

Browse files
committed
filters: add .NET PDB file filter
1 parent 2c44705 commit 14aa884

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

filters/81-dotnet_pdb.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
##filter/dotnet_pdb.sh: C#
3+
##@copyright GPL-2.0+
4+
5+
filter_dotnet_pdb() {
6+
for i in "$PKGDIR"/{opt/*/*/,opt/*/,usr/,}{lib{,64,exec},{s,}bin}/; do
7+
if [ -d "$i" ]; then
8+
for f in `find $i -type f -name "*.pdb"`; do
9+
if bool "$ABSPLITDBG"; then
10+
path=${f#"$PKGDIR"}
11+
abinfo "Moving .NET PDB file $f"
12+
mkdir -p `dirpath $SYMDIR/$path`
13+
mv $f $SYMDIR/$path
14+
elif bool "$ABSTRIP"; then
15+
abinfo "Dropping .NET PDB file $f"
16+
rm $f
17+
fi
18+
done
19+
fi
20+
done
21+
}
22+
23+
ab_register_filter dotnet_pdb

0 commit comments

Comments
 (0)