Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
dnscrypt-proxy
install_licenses.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File install_licenses.sh of Package dnscrypt-proxy
#!/bin/bash # written by cunix in 2019 # updated in 2021 # # Installs or links previously found licenses. # # $1 should be the soure directory, prepared with script "find_licenses.sh" # $2 should be the (already created) destination directory vendor_licenses_dir=$1 install_licenses_dir=$2 licenses_files=$(mktemp /tmp/real_license_files_XXXXXXXXXX.txt) licenses_links=$(mktemp /tmp/link_license_files_XXXXXXXXXX.txt) rm $licenses_files rm $licenses_links find -P $vendor_licenses_dir -type f -fprintf $licenses_files "%f\n" find -P $vendor_licenses_dir -type l -fprintf $licenses_links "%f %l\n" while read line do install -D -m 0644 $vendor_licenses_dir/$line $install_licenses_dir/$line echo installed: $line done < $licenses_files cd $install_licenses_dir while read line do combo=($line) ln -s ${combo[1]} ${combo[0]} echo linked: $line done < $licenses_links
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor