Skip to content
Snippets Groups Projects
Select Git revision
  • 83d9c498ec1bdc6dcebfb457e5cc074b7aa12844
  • master default protected
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
11 results

semi_coherent_twoglitch_search_using_MCMC.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    • Gregory Ashton's avatar
      89f200ed
      Renames sftfilepath -> sftfilepattern · 89f200ed
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
      89f200ed
      History
      Renames sftfilepath -> sftfilepattern
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
    generate_svn_version.sh 804 B
    #!/usr/bin/env sh
    
    HEADER="svn_version.h"
    TMPFILE="$HEADER.tmp"
    
    echo "#ifndef SVN_VERSION_H" > $TMPFILE
    echo "#define SVN_VERSION_H" >> $TMPFILE
    echo "" >> $TMPFILE
    
    if [ -d .git ]; then
        CMD="git svn info"
    elif [ -d .svn ]; then
        CMD="svn info"
    else
        CMD=""
    fi
    
    if [ "x$CMD" != "x" ]; then
        $CMD | awk '/^URL/ { url = $2; }; \
                    /^Rev/ { rev = $2; }; \
                    END { print "#define SVN_VERSION \"Repository: " url \
                                " Revision: " rev "\""; };' \
                   >> $TMPFILE
    else
        echo "#include \"version.h\"" >> $TMPFILE
        echo "#define SVN_VERSION BOINC_VERSION_STRING" >> $TMPFILE
    fi
    
    echo "" >> $TMPFILE
    echo "#endif" >> $TMPFILE
    
    if cmp "$HEADER" "$TMPFILE" >/dev/null 2>&1; then
    	rm -f "$TMPFILE"
    else
    	mv "$TMPFILE" "$HEADER"
    fi