Jetpack/Release Process: Difference between revisions

find and replace versions only in .version and * files, not all files in the working directory (which catches files in .git as well)
(find and replace versions only in .version and * files, not all files in the working directory (which catches files in .git as well))
Line 131: Line 131:


  git checkout master
  git checkout master
  find . -type f -exec perl -pi -e "s/${JPCV}/${JPNV}/g" {} \;
  find .version * -type f -exec perl -pi -e "s/${JPCV}/${JPNV}/g" {} \;


Verify that the version identifiers were changed correctly. In particular, make sure the find/replace command didn't modify strings that aren't SDK version identifiers but look similar to them (f.e. a version identifier in the jQuery library).
Verify that the version identifiers were changed correctly. In particular, make sure the find/replace command didn't modify strings that aren't SDK version identifiers but look similar to them (f.e. a version identifier in the jQuery library).
Line 201: Line 201:
Change the version identifier in source files to the one for the test build:
Change the version identifier in source files to the one for the test build:


  find . -type f -exec perl -pi -e "s/${JPCV}/${JPFV}/g" {} \;
  find .version * -type f -exec perl -pi -e "s/${JPCV}/${JPFV}/g" {} \;


Verify that the version identifiers were changed correctly. In particular, make sure the find/replace command didn't modify strings that aren't SDK version identifiers but look similar to them (f.e. a version identifier in the jQuery library).
Verify that the version identifiers were changed correctly. In particular, make sure the find/replace command didn't modify strings that aren't SDK version identifiers but look similar to them (f.e. a version identifier in the jQuery library).
canmove, Confirmed users
2,056

edits