Here is the problem as I understand it.
1. You have a ton of scripts that have hard coded paths
2. Each time a new deployment occurs, you must edit the paths
3. Your sick of manually editing the paths!
Proposal:
-- Create a script that anyone can use that will do the following.
1. Copy the files in questions (deploy them were they need to be)
2. For each file and path that needs a change, Prompt the user with the existing directory paths. Ask user if this is correct (if so, exit) if not ask user to specify the path.
3. Validate the users input.
4. Backup the original config files that you are about to change.
5. Use sed to change the path by replacing the old path in the file with what the user just requested.
6. Work on a more robust deployment plan
Here is a
link to some sed info to get you started