This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------------- | |
project(TestGitCmd) | |
#----------------------------------------------------------------------------- | |
#----------------------------------------------------------------------------- | |
cmake_minimum_required(VERSION 2.8) | |
#----------------------------------------------------------------------------- | |
find_program(git_EXECUTABLE | |
NAMES git.cmd git eg.cmd eg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license_file=~/Projects/Visomics/NOTICE | |
while read i; | |
do | |
echo "Checking $i" | |
if ! grep -q Copyright $i | |
then | |
echo "=> Updating $i" | |
cat $license_file $i >$i.new && mv $i.new $i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<!-- Source: http://geekswithblogs.net/Erik/archive/2008/04/01/120915.aspx --> | |
<xsl:template name="string-replace-all"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template match="/executable"> | |
<xsl:value-of select="category" /> | |
</xsl:template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<!-- See http://na-mic.org/Mantis/view.php?id=2536 --> | |
<xsl:template match="name"> (<xsl:value-of select="."/>)</xsl:template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<xsl:template match="/executable"> | |
<xsl:text>:'''Title:''' </xsl:text><xsl:value-of select="title"/><xsl:call-template name="newline"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# 1) Save this file in <Slicer-Superbuild/Slicer-build>. | |
# 2) Chmod u+x CleanCLIModuleBuildDirectory.sh | |
# 3) Run the script | |
# 4) Rebuild | |
# | |
cliBinSubDirectory=./lib/Slicer-4.0/cli-modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - Configure a project for testing with CTest/CDash | |
# Include this module in the top CMakeLists.txt file of a project to | |
# enable testing with CTest and dashboard submissions to CDash: | |
# project(MyProject) | |
# ... | |
# include(CTest) | |
# The module automatically creates a BUILD_TESTING option that selects | |
# whether to enable testing support (ON by default). After including | |
# the module, use code like | |
# if(BUILD_TESTING) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(myfunc) | |
set(foo "myfunc") | |
message("Line ${CMAKE_CURRENT_LIST_LINE} - foo: ${foo} [scope: myfunc]") | |
endfunction() | |
function(myfunc_parent_scope) | |
set(foo "myfunc_parent_scope" PARENT_SCOPE) | |
message("Line ${CMAKE_CURRENT_LIST_LINE} - foo: ${foo} [scope: myfunc_parent_scope]") | |
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer