Ticket #7781: selectedinactive-v3.sh

File selectedinactive-v3.sh, 1.1 KB (added by stuartm, 10 years ago)

Version which includes spinboxes

Line 
1#!/bin/sh
2
3find . -name "*.xml" -type f -exec sed -i '/<buttonlist name=/,/<\/buttonlist/s/<state name=\"inactive\"/<state name=\"selectedinactive\"/' {} \;
4find . -name "*.xml" -type f -exec sed -i '/<buttonlist name=/,/<\/buttonlist/s/from=\"inactive\"/from=\"selectedinactive\"/g' {} \;
5
6find . -name "*.xml" -type f -exec sed -i '/<buttonlist name=/,/<\/buttonlist/s/<state name=\"selected\"/<state name=\"selectedactive\"/' {} \;
7find . -name "*.xml" -type f -exec sed -i '/<buttonlist name=/,/<\/buttonlist/s/from=\"selected\"/from=\"selectedactive\"/g' {} \;
8
9find . -name "*.xml" -type f -exec sed -i '/<spinbox name=/,/<\/spinbox/s/<state name=\"inactive\"/<state name=\"selectedinactive\"/' {} \;
10find . -name "*.xml" -type f -exec sed -i '/<spinbox name=/,/<\/spinbox/s/from=\"inactive\"/from=\"selectedinactive\"/g' {} \;
11
12find . -name "*.xml" -type f -exec sed -i '/<spinbox name=/,/<\/spinbox/s/<state name=\"selected\"/<state name=\"selectedactive\"/' {} \;
13find . -name "*.xml" -type f -exec sed -i '/<spinbox name=/,/<\/spinbox/s/from=\"selected\"/from=\"selectedactive\"/g' {} \;