File: meson-install-web.py

package info (click to toggle)
libvirt 11.3.0-3%2Bdeb13u2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 203,868 kB
  • sloc: ansic: 531,629; xml: 289,702; python: 11,881; perl: 2,629; sh: 2,172; makefile: 447; javascript: 126; cpp: 22
file content (14 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

import os
import shutil
import sys

destdir = os.environ.get('DESTDIR', os.sep)

for desc in sys.argv[1:]:
    inst = desc.split(':')
    src = inst[0]
    dst = os.path.join(destdir, inst[1].strip(os.sep))
    os.makedirs(dst, exist_ok=True)
    shutil.copy(src, dst)