Skip to content

Commit

Permalink
fixup! feat: Use USERNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 27, 2024
1 parent 69244ec commit e4218e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion template/CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
abstract: {{PROJECT_NAME}}
authors:
- alias: {{USERNAME}}
- alias: {{NAME}}
identifiers:
- type: url
value: https://github.com/{{REPOSITORY}}/releases/tag/v0.0.0
Expand Down
2 changes: 1 addition & 1 deletion template/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Jun Xiang
Copyright (c) 2024 {{NAME}}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit e4218e4

Please sign in to comment.