checkoutpwiz.sh
bcff5d52
 #!/bin/bash 
 #------------------
 
 # http://proteowizard.svn.sourceforge.net/viewvc/proteowizard/trunk/pwiz/libraries/boost_aux/boost/utility/
 
 cd src
 
a02f5ad5
 if /bin/false ; then
 #------------------
     
bcff5d52
 rm -rf pwiz
 mkdir pwiz
 cd pwiz
 
5b27a21e
 PWIZREPO=http://svn.code.sf.net/p/proteowizard/code/trunk/pwiz/
bcff5d52
 svn co --non-recursive $PWIZREPO .
 
94d4ecf5
 for DIR in data/msdata data/identdata data/proteome data/common utility/chemistry/ utility/misc/ utility/math/ utility/minimxml/ ; do 
bcff5d52
     svn co $PWIZREPO/pwiz/$DIR $DIR
 done
 
a02f5ad5
 cd ..
 
bcff5d52
 #------------------
 
 rm -rf boost
 
a02f5ad5
 BOOSTVER=1_58_0
 BOOSTVERDOT=1.58.0
 BOOSTURL=https://freefr.dl.sourceforge.net/project/boost/boost/$BOOSTVERDOT/boost_$BOOSTVER.tar.gz
bcff5d52
 
a02f5ad5
 wget -O- "$BOOSTURL" | tar xzvf -
bcff5d52
 
a02f5ad5
 mv boost_$BOOSTVER boost
bcff5d52
            
 #------------------
 
 rm -rf boost_aux
 mkdir boost_aux
 cd boost_aux
 
5b27a21e
 PWIZBOOSTREPO=http://svn.code.sf.net/p/proteowizard/code/trunk/pwiz/libraries/boost_aux/boost/
bcff5d52
 svn co $PWIZBOOSTREPO boost
 
 cd ..
 
 #------------------
a02f5ad5
 fi 
 #------------------
bcff5d52
 
 
 PWIZ_MAJOR=$(grep "constant PWIZ_MAJOR" pwiz/Jamroot.jam | sed -e 's/constant PWIZ_MAJOR : \([0-9+]\) ;/\1/')
 PWIZ_MINOR=$(grep "constant PWIZ_MINOR" pwiz/Jamroot.jam | sed -e 's/constant PWIZ_MINOR : \([0-9+]\) ;/\1/')
 
a02f5ad5
 #lastchangedrev=$(svn info pwiz/data/msdata | grep "Last Changed Rev:" | cut -d: -f 2)
 #lastchangeddate=$(svn info pwiz/data/msdata | grep "Last Changed Date:" | cut -d" " -f 4 | tr "-" " ")
 lastchangedrev=666
 lastchangeddate="1016-03-22"
 revisioninfo=( $lastchangedrev $lastchangeddate 3 4 )
 echo ${revisioninfo[*]}
bcff5d52
 
 cat >pwiz/data/msdata/Version.cpp <<EOF
 // This file was generated by the \"svnrev\" utility
 // You should not modify it manually, as it may be re-generated.
 //
 // $Revision: ${revisioninfo[1]} $
 // $Date: ${revisioninfo[2]}-${revisioninfo[3]}-${revisioninfo[4]} $
 //
 
 #define PWIZ_SOURCE
 #include "Version.hpp"
 #include <sstream>
 
 #ifdef PWIZ_USER_VERSION_INFO_H // in case you need to add any info version of your own
 #include PWIZ_USER_VERSION_INFO_H  // must define PWIZ_USER_VERSION_INFO_H_STR for use below
 #endif
 
 namespace pwiz {
 namespace msdata {
 
 using std::string;
 
 int Version::Major()                {return 0${PWIZ_MAJOR};}
 int Version::Minor()                {return 0${PWIZ_MINOR};}
 int Version::Revision()             {return 0${revisioninfo[1]};}
 string Version::LastModified()      {return "${revisioninfo[2]}-${revisioninfo[3]}-${revisioninfo[4]}";}
 string Version::str()               
 {
 	std::ostringstream v;
 	v << Major() << '.' << Minor() << '.' << Revision();
 #ifdef PWIZ_USER_VERSION_INFO_H
 	v << " (" << PWIZ_USER_VERSION_INFO_H_STR << ")";
 #endif
 	return v.str();
 }
 }
 }
 EOF
 
 #------------------
a02f5ad5
 
 
 PWIZ_MAJOR=$(grep "constant PWIZ_MAJOR" pwiz/Jamroot.jam | sed -e 's/constant PWIZ_MAJOR : \([0-9+]\) ;/\1/')
 PWIZ_MINOR=$(grep "constant PWIZ_MINOR" pwiz/Jamroot.jam | sed -e 's/constant PWIZ_MINOR : \([0-9+]\) ;/\1/')
 
 #lastchangedrev=$(svn info pwiz/data/msdata | grep "Last Changed Rev:" | cut -d: -f 2)
 #lastchangeddate=$(svn info pwiz/data/msdata | grep "Last Changed Date:" | cut -d" " -f 4 | tr "-" " ")
 lastchangedrev=666
 lastchangeddate="1016-03-22"
 revisioninfo=( $lastchangedrev $lastchangeddate 3 4 )
 echo ${revisioninfo[*]}
 
 cat >pwiz/data/identdata/Version.cpp <<EOF
 // This file was generated by the \"svnrev\" utility
 // You should not modify it manually, as it may be re-generated.
 //
 // $Revision: ${revisioninfo[1]} $
 // $Date: ${revisioninfo[2]}-${revisioninfo[3]}-${revisioninfo[4]} $
 //
 
 #define PWIZ_SOURCE
 #include "Version.hpp"
 #include <sstream>
 
 #ifdef PWIZ_USER_VERSION_INFO_H // in case you need to add any info version of your own
 #include PWIZ_USER_VERSION_INFO_H  // must define PWIZ_USER_VERSION_INFO_H_STR for use below
 #endif
 
 namespace pwiz {
 namespace identdata {
 
 using std::string;
 
 int Version::Major()                {return 0${PWIZ_MAJOR};}
 int Version::Minor()                {return 0${PWIZ_MINOR};}
 int Version::Revision()             {return 0${revisioninfo[1]};}
 string Version::LastModified()      {return "${revisioninfo[2]}-${revisioninfo[3]}-${revisioninfo[4]}";}
 string Version::str()               
 {
 	std::ostringstream v;
 	v << Major() << '.' << Minor() << '.' << Revision();
 #ifdef PWIZ_USER_VERSION_INFO_H
 	v << " (" << PWIZ_USER_VERSION_INFO_H_STR << ")";
 #endif
 	return v.str();
 }
 }
 }
 EOF