File: postrm-fortran-mod

package info (click to toggle)
dh-fortran 0.67
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 972 kB
  • sloc: f90: 5,708; python: 2,089; perl: 126; makefile: 119; sh: 7
file content (10 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (2)
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 )