1
1
#!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
2
#
4
- # Copyright (c) nexB Inc. and others. All rights reserved.
3
+ # Copyright (c) nexB Inc. AboutCode, and others. All rights reserved.
5
4
# ScanCode is a trademark of nexB Inc.
6
5
# SPDX-License-Identifier: Apache-2.0
7
6
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8
- # See https://github.com/nexB /skeleton for support or download.
7
+ # See https://github.com/aboutcode-org /skeleton for support or download.
9
8
# See https://aboutcode.org for more information about nexB OSS projects.
10
9
#
11
10
16
15
import click
17
16
18
17
19
- NEXB_PUBLIC_REPO_NAMES = [
18
+ ABOUTCODE_PUBLIC_REPO_NAMES = [
20
19
"aboutcode-toolkit" ,
21
20
"ahocode" ,
22
21
"bitcode" ,
56
55
57
56
@click .command ()
58
57
@click .help_option ("-h" , "--help" )
59
- def update_skeleton_files (repo_names = NEXB_PUBLIC_REPO_NAMES ):
58
+ def update_skeleton_files (repo_names = ABOUTCODE_PUBLIC_REPO_NAMES ):
60
59
"""
61
- Update project files of nexB projects that use the skeleton
60
+ Update project files of AboutCode projects that use the skeleton
62
61
63
62
This script will:
64
63
- Clone the repo
@@ -81,14 +80,14 @@ def update_skeleton_files(repo_names=NEXB_PUBLIC_REPO_NAMES):
81
80
os .chdir (work_dir_path )
82
81
83
82
# Clone repo
84
- repo_git = f"git@github.com:nexB /{ repo_name } .git"
83
+ repo_git = f"git@github.com:aboutcode-org /{ repo_name } .git"
85
84
subprocess .run (["git" , "clone" , repo_git ])
86
85
87
86
# Go into cloned repo
88
87
os .chdir (work_dir_path / repo_name )
89
88
90
89
# Add skeleton as an origin
91
- subprocess .run (["git" , "remote" , "add" , "skeleton" , "git@github.com:nexB /skeleton.git" ])
90
+ subprocess .run (["git" , "remote" , "add" , "skeleton" , "git@github.com:aboutcode-org /skeleton.git" ])
92
91
93
92
# Fetch skeleton files
94
93
subprocess .run (["git" , "fetch" , "skeleton" ])
0 commit comments