"Fossies" - the Fresh Open Source Software Archive

Member "fuse-3.2.1/util/install_helper.sh" (14 Nov 2017, 935 Bytes) of package /linux/misc/fuse-3.2.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "install_helper.sh": 3.1.1_vs_3.2.0.

    1 #!/bin/sh
    2 #
    3 # Don't call this script. It is used internally by the Meson
    4 # build system. Thank you for your cooperation.
    5 #
    6 
    7 set -e
    8 
    9 sysconfdir="$1"
   10 bindir="$2"
   11 udevrulesdir="$3"
   12 prefix="${MESON_INSTALL_DESTDIR_PREFIX}"
   13 
   14 chown root:root "${prefix}/${bindir}/fusermount3"
   15 chmod u+s "${prefix}/${bindir}/fusermount3"
   16 
   17 if test ! -e "${DESTDIR}/dev/fuse"; then
   18     mkdir -p "${DESTDIR}/dev"
   19     mknod "${DESTDIR}/dev/fuse" -m 0666 c 10 229
   20 fi
   21 
   22 install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \
   23         "${DESTDIR}/${udevrulesdir}/99-fuse3.rules"
   24 
   25 install -D -m 755 "${MESON_SOURCE_ROOT}/util/init_script" \
   26         "${DESTDIR}/etc/init.d/fuse3"
   27 
   28 if test -x /usr/sbin/update-rc.d && test -z "${DESTDIR}"; then
   29     /usr/sbin/update-rc.d fuse3 start 34 S . start 41 0 6 . || /bin/true
   30 else
   31     echo "== FURTHER ACTION REQUIRED =="
   32     echo "Make sure that your init system will start the ${DESTDIR}/etc/init.d/fuse3 init script"
   33 fi
   34 
   35