File: libmpich-dev.preinst.in

package info (click to toggle)
mpich 4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,184 kB
  • sloc: ansic: 1,040,629; cpp: 82,270; javascript: 40,763; perl: 27,933; python: 16,041; sh: 14,676; xml: 14,418; f90: 12,916; makefile: 9,270; fortran: 8,046; java: 4,635; asm: 324; ruby: 103; awk: 27; lisp: 19; php: 8; sed: 4
file content (40 lines) | stat: -rw-r--r-- 1,947 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
set -e

if	dpkg --compare-versions "$2" lt-nl "4.2.2-1~" && \
	dpkg --compare-versions "$2" ge "4.2.0"
then
	# missing dir_to_symlink/symlink_to_dir caused files at a location
	# where dpkg does not recognize proper ownership:
	# dpkg-maintscript-helper: error: directory '/usr/include/x86_64-linux-gnu/mpich' contains files not owned by package libmpich-dev:amd64, cannot switch to symlink
	if [ ! -L '/usr/include/@DEB_HOST_MULTIARCH@/mpich' ] && \
		[ -d '/usr/include/@DEB_HOST_MULTIARCH@/mpich' ]
	then
		rm -fv \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_proto.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpicxx.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpif.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpio.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpiof.h' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_base.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_c_interface.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_c_interface_cdesc.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_c_interface_glue.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_c_interface_nobuf.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_c_interface_types.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_constants.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_f08.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_f08_callbacks.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_f08_compile_constants.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_f08_link_constants.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_f08_types.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/mpi_sizeofs.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/pmpi_base.mod' \
			'/usr/include/@DEB_HOST_MULTIARCH@/mpich/pmpi_f08.mod' \

	fi
fi

#DEBHELPER#