[Hdrflow-svn] SF.net SVN: hdrflow: [126] unity.sh
Status: Pre-Alpha
Brought to you by:
glslang
|
From: <gl...@us...> - 2007-05-19 16:37:12
|
Revision: 126
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=126&view=rev
Author: glslang
Date: 2007-05-19 09:37:10 -0700 (Sat, 19 May 2007)
Log Message:
-----------
+initial unification build/distribute script
Added Paths:
-----------
unity.sh
Added: unity.sh
===================================================================
--- unity.sh (rev 0)
+++ unity.sh 2007-05-19 16:37:10 UTC (rev 126)
@@ -0,0 +1,37 @@
+#!/bin/sh -x
+# Unification of build and distribution:
+# recurses into lib and app directories, building each in turn.
+# updates Boost version in VC8 project files.
+
+if [ $# -eq "0" ]
+then
+ echo "usage: `basename $0` options (-evb)"
+ exit 1
+fi
+
+update_boost_version=0
+boost_old_version=1_33_1
+boost_new_version=1_34
+
+while getopts "v:b:e" option
+do
+ case $option in
+ e ) update_boost_version=1;;
+ v ) boost_old_version="$OPTARG";;
+ b ) boost_new_version="$OPTARG";;
+ esac
+done
+
+shift $(($OPTIND - 1))
+
+if [ "$update_boost_version" -eq 1 ]
+then
+ find . -type f -name '*.vcproj' -print | while read i
+ do cp $i $i.unity.bak &&
+ sed -e "s|boost-$boost_old_version|boost-$boost_new_version|g" -e "s|$boost_old_version.lib|$boost_new_version.lib|g" $i.unity.bak > $i &&
+ rm $i.unity.bak
+ done
+fi
+
+exit 0
+
Property changes on: unity.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|