-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69244ec
commit e4218e4
Showing
3 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,17 +62,15 @@ echo | |
echo "Writing files..." | ||
|
||
# Writing general stuff | ||
find ./template/ -type f \( -iname CITATION.cff -o -iname \*.md \) -print0 | xargs -0 sed -i -e "s/{{REPOSITORY}}/$username\/$repository/g" \ | ||
find ./template/ -type f \( -iname LICENSE -o -iname CITATION.cff -o -iname \*.md \) -print0 | xargs -0 sed -i -e "s/{{REPOSITORY}}/$username\/$repository/g" \ | ||
-e "s/{{PROJECT_NAME}}/$proj_name/g" \ | ||
-e "s/{{PROJECT_SHORT_DESCRIPTION}}/$proj_short_desc/g" \ | ||
-e "s/{{PROJECT_LONG_DESCRIPTION}}/$proj_long_desc/g" \ | ||
-e "s/{{DOCS_URL}}/$docs_url/g" \ | ||
-e "s/assignees: caffeine-addictt/assignees: $username/g" \ | ||
-e "s/[email protected]/$email/g" \ | ||
-e "s/{{USERNAME}}/$username/g" | ||
|
||
# Write License | ||
sed -i -e "s/Jun Xiang/$name/g" ./template/LICENSE | ||
-e "s/{{USERNAME}}/$username/g" \ | ||
-e "s/{{NAME}}/$name/g" | ||
|
||
# Write CODEOWNERS | ||
echo "* @$username" >>./template/.github/CODEOWNERS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters