File: windows_copyq_update.sh

package info (click to toggle)
copyq 3.7.3-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 10,480 kB
  • sloc: cpp: 51,894; sh: 734; python: 211; xml: 57; makefile: 34
file content (19 lines) | stat: -rwxr-xr-x 453 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
#!/bin/bash
# Script to update CopyQ installation on Windows.
build=${1:-"../build-copyq-Qt_4_8_5-Release"}
dst=${2:-"/c/dev/copyq"}
src=${3:-$PWD}

set -e

update() {
    set -e
    mkdir -p "${@: -1}"
    cp -uv -- "$@"
}

update "$src"/{README.md,AUTHORS,HACKING,LICENSE} "$dst"
update "$src"/shared/themes/*.ini "$dst/themes"
update "$build"/copyq.exe "$dst"
update "$build"/plugins/*.dll "$dst/plugins"
update "$build"/src/*.qm "$dst/translations"