[Insight-developers] First commit to Gerrit ... Now what?

Johnson, Hans J hans-johnson at uiowa.edu
Mon Aug 30 18:14:19 EDT 2010


I just made my first commit to Gerrit following the recipe: http://www.visualizationtoolkit.org/Wiki/ITK/Gerrit


The new topic is located at:  http://review.source.kitware.com/#change,29

This is in response to the ticket item: http://www.vtk.org/Bug/view.php?id=11175


Please let me know what the next steps are.  I don't quite understand how topics make it from Gerrit to origin/master.


Thanks,
Hans

===  Process used to make lower_case formatting  =========

This is documentation for the process to convert all
CMakeLists.txt files to lower case format (as seems
to be the default style in all recent documentation).



Step #1:

Determine all the cmake commands:
TMP_DIR=/tmp
cmake --help-command-list > ${TMP_DIR}/firstpass_script.vi

Step #2:
Use vim to convert the list into a vim compliant script file that can be
applied to each file:

Open firstpass_script.vi in vim, and issue the following substitution:
vim ${TMP_DIR}/firstpass_script.vi
:%s/^\(.*\)/:%s#\\<\U\1\\> *(#\l\1(#\ge/ge
<<< Add ":%s/  *$//ge" to remove end of line spaces.
<<< Add ":wqa" to end of the vim script >>>
:w! ${TMP_DIR}/convert_cmake_to_lowercase.vim

This will create a file that is suitable for using as
a vim batch script.

Step #3:  Make list of files to convert

cd ITK
FILESTOCONVERT=/tmp/FileToConvert
find . -name CMakeLists.txt |fgrep -v Utilitites > ${FILESTOCONVERT}
ls Utilities/CMakeLists.txt >> ${FILESTOCONVERT}
find . -name "*.cmake*" |fgrep -v Utilities >>${FILESTOCONVERT}

for ff in $(cat ${FILESTOCONVERT}); do
  echo "PROCESSING $ff"
  vim -S ${TMP_DIR}/convert_cmake_to_lowercase.vim $ff
done

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100830/0431b385/attachment.htm>


More information about the Insight-developers mailing list