File: postrm-fortran-mod

package info (click to toggle)
dh-fortran 0.57
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 816 kB
  • sloc: f90: 5,705; python: 1,485; perl: 610; makefile: 80; sh: 7
file content (10 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
# Cleanup experimentall cruft
multiarch="#MULTIARCH#"
base="#FCOMPILERMOD#"

if test -d /usr/lib/$multiarch/fortran/$base ; then
  ( cd /usr/lib/$multiarch && rmdir --ignore-fail-on-non-empty --parents fortran/$base )
fi

# Delete cruft  directory when empty
( rmdir --ignore-fail-on-non-empty /usr/lib/$multiarch/fortran/gfortran 2> /dev/null || true )