Skip to content
Snippets Groups Projects
windows_copyq_update.sh 457 B
Newer Older
  • Learn to ignore specific revisions
  • hluk's avatar
    hluk committed
    #!/bin/bash
    # Script to update CopyQ installation on Windows.
    
    build=${1:-"../build-copyq-Qt_4_8_5-Release"}
    
    hluk's avatar
    hluk committed
    dst=${2:-"/c/dev/copyq"}
    
    src=${3:-$PWD}
    
    hluk's avatar
    hluk committed
    
    set -e
    
    update() {
        set -e
    
        mkdir -p "${@: -1}"
        cp -uv -- "$@"
    
    hluk's avatar
    hluk committed
    }
    
    
    update "$src"/{README.md,AUTHORS,HACKING} "$dst"
    update "$src"/shared/themes/*.ini "$dst/themes"
    update "$build"/{copyq.exe,copyq.com} "$dst"
    update "$build"/plugins/*.dll "$dst/plugins"
    update "$build"/src/*.qm "$dst/translations"