#!/bin/bash ## usage: bash cleanup-Drupal.Commenting.FunctionComment.$InReturnType.sh vi ## usage: bash cleanup-Drupal.Commenting.FunctionComment.$InReturnType.sh joe [ -n "$1" ] && EDITOR="$1" if [ -z "$EDITOR" ]; then echo "Please provide parameter 1 (editor). Example: vi, joe" exit 1 fi function edit_at_line() { local f="$1" local l="$2" $EDITOR +$l "$f" } echo Process cleanup for 'Drupal.Commenting.FunctionComment.$InReturnType' echo Number of lines: 13 echo Examples: 'Array ( [0] => @return data type must not contain \"$\" ) ' echo Press ENTER to begin read edit_at_line 'CRM/Activity/BAO/Activity.php' 275 edit_at_line 'CRM/Activity/BAO/Activity.php' 2072 edit_at_line 'CRM/Activity/Form/Activity.php' 1002 edit_at_line 'CRM/Contact/BAO/Contact.php' 1620 edit_at_line 'CRM/Contribute/BAO/Contribution.php' 1339 edit_at_line 'CRM/Event/BAO/ParticipantStatusType.php' 39 edit_at_line 'CRM/Event/BAO/ParticipantStatusType.php' 53 edit_at_line 'CRM/Event/Cart/BAO/Cart.php' 104 edit_at_line 'CRM/Event/Cart/BAO/EventInCart.php' 29 edit_at_line 'CRM/Member/BAO/Membership.php' 607 edit_at_line 'CRM/Member/BAO/Membership.php' 623 edit_at_line 'CRM/SMS/Provider.php' 126 edit_at_line 'CRM/SMS/Provider.php' 192