File: install.sh

package info (click to toggle)
libvidstab 1.1.0-2.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: ansic: 6,094; makefile: 19; sh: 14
file content (15 lines) | stat: -rwxr-xr-x 622 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

PATHS="/usr/lib/transcode /usr/local/lib/transcode /usr/lib64/transcode /usr/local/lib64/transcode $HOME/lib/transcode  $HOME/lib64/transcode"
for D in $PATHS; do
    if [ -d "$D" ]; then
        echo -n "Do you want to install the plugins to $D ? [y/N] ";
        read choice
        if [ "$choice" = "y" ]; then
            echo -n "Copy files... "	
            SUDO=;
            if [ ! -w $D ]; then SUDO=sudo; echo " (need root permission, so I use sudo) "; fi
	    $SUDO cp -v --backup=numbered ./filter_stabilize.so ./filter_transform.so ./filter_deshake.so "$D/" && echo "done";
        fi
    fi
done