Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr//bin/gawk -f
- # This script modifies a package.json file. It removes the author and adds
- # a lead maintainer given my the environment variables `LEAD_MAINTAINER_NAME`
- # and `LEAD_MAINTAINER_EMAIL`.
- {
- key = $1
- # Remove author
- if(key == "\"author\":") {
- next
- }
- if (key == "\"description\":") {
- print $0
- #print " \"leadMaintainer\": \"A Test <[email protected]>\""
- print " \"leadMaintainer\": \"" ENVIRON["LEAD_MAINTAINER_NAME"] " <" ENVIRON["LEAD_MAINTAINER_EMAIL"] ">\","
- next
- }
- print $0
- }
Add Comment
Please, Sign In to add comment