1
0
Files
gcc-14/debian/dh_rmemptydirs
Konstantin Demin c2c1923c7b initial import from Debian
version: 14.3.0-5
commit: bee30ab0fff2fd6af94c62376c8aa4221bb831e0
2025-08-11 15:00:09 +03:00

11 lines
251 B
Bash
Executable File

#! /bin/sh -e
pkg=`echo $1 | sed 's/^-p//'`
: # remove empty directories, when all components are in place
for d in `find debian/$pkg -depth -type d -empty 2> /dev/null`; do \
while rmdir $d 2> /dev/null; do d=`dirname $d`; done; \
done
exit 0