Skip to content

Instantly share code, notes, and snippets.

View arnaudgelas's full-sized avatar

Arnaud Gelas arnaudgelas

View GitHub Profile
@jcfr
jcfr / cmake-command-to-lowercase.sh
Created March 22, 2012 23:18
The following script allows to automatically change the case of CMake script from upper to lower case.
#!/bin/sh
for file in $(find . -type f -name '*\.cmake' -o -name '*\.txt' -o -name '*\.ctest')
do
echo "Processing file [$file]"
for cmd in $(cmake --help-command-list)
do
sed -i "s/${cmd}(/${cmd}(/gI" $file
done
done
project( itkMetaImageMesh.cxx )
cmake_minimum_required( VERSION 2.6 )
find_package( ITK )
include( ${ITK_USE_FILE} )
add_executable( itkMetaImageMesh itkMetaImageMesh.cxx )
target_link_libraries( itkMetaImageMesh ${ITK_LIBRARIES} )
@thewtex
thewtex / add-reviewers.py
Created November 12, 2010 13:43
Add authors of the files that were changed as reviewers to a Gerrit submission.
#!/usr/bin/env python
info = """Add reviewers to a Gerrit change.
Authors of files that were edited are nominated as potential reviewers.
*Caveats*
- Should be executed from the root of the repository.
- Should be executed while checked out on the topic branch to be pushed to