File: fetch-missing-sources.sh

package info (click to toggle)
keepassxc-browser 1.7.4%2Brepack1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,460 kB
  • sloc: javascript: 7,249; makefile: 17; sh: 10
file content (20 lines) | stat: -rwxr-xr-x 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# NOTE: Run in debian/ directory!
mkdir -p missing-sources

# keepassxc-browser-1.6.0/keepassxc-browser/browser-polyfill.min.js
# webextension-polyfill v.0.3.1
# (https://github.com/mozilla/webextension-polyfill)
curl 'https://unpkg.com/webextension-polyfill@0.3.1/dist/browser-polyfill.js' \
  > missing-sources/browser-polyfill.js

# NaCl util library
# https://github.com/dchest/tweetnacl-util-js/releases
rm -rf tweetnacl-util-js-0.15.0
curl --location \
  'https://github.com/dchest/tweetnacl-util-js/archive/v0.15.0.tar.gz' \
  > tweetnacl-util-js-0.15.0.tar.gz
tar -xzf tweetnacl-util-js-0.15.0.tar.gz && \
  cp -a tweetnacl-util-js-0.15.0/nacl-util.js missing-sources/
rm -rf tweetnacl-util-js-0.15.0 tweetnacl-util-js-0.15.0.tar.gz