File: postrm-fortran-mod

package info (click to toggle)
dh-fortran 0.66
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 960 kB
  • sloc: f90: 5,708; python: 1,988; makefile: 118; perl: 112; 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 )