74ba0bece2
Build all varia children
10 lines
518 B
Bash
Executable file
10 lines
518 B
Bash
Executable file
#!/bin/bash
|
|
|
|
declare -a ChildThemes=("alves" "balasana" "barnsbury" "brompton" "coutoire" "dalston" "exford" "hever" "leven" "mayland" "maywood" "morden" "redhill" "rivington" "rockfield" "shawburn" "stow" "stratford" )
|
|
|
|
for child in ${ChildThemes[@]}; do
|
|
cd '../'${child}
|
|
echo 'Renumbering '${child}
|
|
perl -pi -e 's/Version: ((\d+\.)*)(\d+)(.*)$/"Version: ".$1.($3+1).$4/ge' sass/style-child-theme.scss
|
|
perl -pi -e 's/\"version\": \"((\d+\.)*)(\d+)\"(.*)$/"\"version\": \"".$1.($3+1)."\"".$4/ge' package.json
|
|
done
|