File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# WORKING --- Remember to escape $ with \$ and replace ' with " and \ with \\ in the replacement expression
88# Summary --- Replaces the setStartDate() method with the correct method. To be run in Git Bash or unix shell
99# File affected - lib/net/authorize/api/contract/v1/PaymentScheduleType.php
10- # Run in Git Bash or unix shell
10+ # Run in Git Bash or unix shell like (file permission to be set to executable:
11+ # ## sh post-patches.sh
1112# Assumption - No child code blocks (curly-brace pairs) within the setStartDate method
1213# Test file - testfile.txt
1314# Options used:
@@ -27,13 +28,16 @@ git diff -- lib/net/authorize/api/contract/v1/PaymentScheduleType.php
2728
2829# WORKING --- Remember to escape $ with \$ and replace ' with " and \ with \\
2930# Summary --- Replaces the CustomerProfileInfoExType with CustomerProfileExType
30- # Files affected - UpdateCustomerProfileRequest.php
31+ # Files affected - UpdateCustomerProfileRequest.php and UpdateCustomerProfileRequest.yml
3132# Run in Git Bash or unix shell
3233# Assumption - CustomerProfileInfoExType present as a whole word or at starting of a word
3334# perl -0777 -pe 's/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/contract/v1/testfile.txt
3435
3536perl -0777 -i -pe ' s/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.php
3637git diff -- lib/net/authorize/api/contract/v1/UpdateCustomerProfileRequest.php
3738
39+ perl -0777 -i -pe ' s/\bCustomerProfileInfoExType/CustomerProfileExType/gs' lib/net/authorize/api/yml/v1/UpdateCustomerProfileRequest.yml
40+ git diff -- lib/net/authorize/api/yml/v1/UpdateCustomerProfileRequest.yml
41+
3842# #References
3943# - http://www.rexegg.com/regex-perl-one-liners.html
You can’t perform that action at this time.
0 commit comments