Select Git revision
semi_coherent_twoglitch_search_using_MCMC.py
Forked from
Gregory Ashton / PyFstat
Source project has a limited visibility.
-
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.
Gregory Ashton authoredThis 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