diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-01-22 19:36:10 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-01-22 19:36:10 +0100 |
commit | e4e0c9e36afec29cf3f5e4f24c2b085a12c7837f (patch) | |
tree | f12cd2999f50a6e7f595fce1bd82bc313591546f /debian/replace_thumbnailer.sh | |
parent | 1dd5b8c88e6db11c731a92031a80beaacee47e46 (diff) |
Add scripts to replace shotwell-video-thumbnailer
Diffstat (limited to 'debian/replace_thumbnailer.sh')
-rwxr-xr-x | debian/replace_thumbnailer.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/replace_thumbnailer.sh b/debian/replace_thumbnailer.sh new file mode 100755 index 0000000..d70dec0 --- /dev/null +++ b/debian/replace_thumbnailer.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +if [ -e /usr/lib/shotwell-video-thumbnailer.org ] ; then + echo ' /usr/lib/shotwell-video-thumbnailer.org exists!' + echo ' break' + exit 1 +fi + +echo '**** backup ****' +mv /usr/lib/shotwell-video-thumbnailer /usr/lib/shotwell-video-thumbnailer.org + +echo '**** install ffmpegthumbnailer ****' +apt-get install ffmpegthumbnailer -y + +echo '**** install new file ****' +touch /usr/lib/shotwell-video-thumbnailer +chmod --reference=/usr/lib/shotwell-video-thumbnailer.org /usr/lib/shotwell-video-thumbnailer + +echo '#! /bin/bash' >/usr/lib/shotwell-video-thumbnailer +echo '' >>/usr/lib/shotwell-video-thumbnailer +echo 'ffmpegthumbnailer -i "$1" -o - -c png' >>/usr/lib/shotwell-video-thumbnailer |