Commit 989bdcd6cab3882b65ab2dc89c87b73b89f7440d

Authored by Henry Schreiner
Committed by Henry Schreiner
1 parent c7af1a68

chore: drop unused py file

Showing 1 changed file with 0 additions and 29 deletions
scripts/UpdateDownloadProj.py deleted
1   -#!/usr/bin/env python
2   -
3   -from __future__ import print_function, division
4   -
5   -from plumbum import local, cli, FG
6   -from plumbum.cmd import curl
7   -
8   -FILES = [
9   - "https://raw.githubusercontent.com/Crascit/DownloadProject/master/DownloadProject.cmake",
10   - "https://raw.githubusercontent.com/Crascit/DownloadProject/master/DownloadProject.CMakeLists.cmake.in",
11   -]
12   -
13   -DIR = local.path(__file__).dirname
14   -
15   -
16   -def download_file(path):
17   - name = path.split("/")[-1]
18   - (curl[path] > name) & FG
19   -
20   -
21   -class UpdateDownloadProj(cli.Application):
22   - def main(self):
23   - with local.cwd(DIR / "../cmake"):
24   - for f in FILES:
25   - download_file(f)
26   -
27   -
28   -if __name__ == "__main__":
29   - UpdateDownloadProj()