Carve and libmv bundling scripts: should work with svn checkout now

This commit is contained in:
Sergey Sharybin 2012-05-10 11:08:25 +00:00
parent 89b61e5430
commit cc5f18693f
2 changed files with 19 additions and 15 deletions

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
if [ -d ./.svn ]; then if [ "x$1" = "x--i-really-know-what-im-doing" ] ; then
echo "This script is supposed to work only when using git-svn" echo Proceeding as requested by command line ...
else
echo "*** Please run again with --i-really-know-what-im-doing ..."
exit 1 exit 1
fi fi
@ -14,8 +16,8 @@ for p in `cat ./patches/series`; do
cat ./patches/$p | patch -d $tmp/carve -p1 cat ./patches/$p | patch -d $tmp/carve -p1
done done
rm -rf include find include -type f -not -iwholename '*.svn*' -exec rm -rf {} \;
rm -rf lib find lib -type f -not -iwholename '*.svn*' -exec rm -rf {} \;
cat "files.txt" | while read f; do cat "files.txt" | while read f; do
mkdir -p `dirname $f` mkdir -p `dirname $f`
@ -24,9 +26,9 @@ done
rm -rf $tmp rm -rf $tmp
sources=`find ./lib -type f -iname '*.cc' -or -iname '*.cpp' -or -iname '*.c' | sed -r 's/^\.\//\t/'` sources=`find ./lib -type f -iname '*.cc' -or -iname '*.cpp' -or -iname '*.c' | sed -r 's/^\.\//\t/' | sort -d`
headers=`find ./lib -type f -iname '*.h' -or -iname '*.hpp' | sed -r 's/^\.\//\t/'` headers=`find ./lib -type f -iname '*.h' -or -iname '*.hpp' | sed -r 's/^\.\//\t/' | sort -d`
includes=`find ./include -type f -iname '*.h' -or -iname '*.hpp' | sed -r 's/^\.\//\t/'` includes=`find ./include -type f -iname '*.h' -or -iname '*.hpp' | sed -r 's/^\.\//\t/' | sort -d`
mkdir -p include/carve/external/boost mkdir -p include/carve/external/boost
cp patches/files/random.hpp include/carve/external/boost/random.hpp cp patches/files/random.hpp include/carve/external/boost/random.hpp

@ -1,14 +1,16 @@
#!/bin/sh #!/bin/sh
if [ "x$1" = "x--i-really-know-what-im-doing" ] ; then
echo Proceeding as requested by command line ...
else
echo "*** Please run again with --i-really-know-what-im-doing ..."
exit 1
fi
#BRANCH="keir" #BRANCH="keir"
#BRANCH="Matthias-Fauconneau" #BRANCH="Matthias-Fauconneau"
BRANCH="Nazg-Gul" BRANCH="Nazg-Gul"
if [ -d ./.svn ]; then
echo "This script is supposed to work only when using git-svn"
exit 1
fi
repo="git://github.com/${BRANCH}/libmv.git" repo="git://github.com/${BRANCH}/libmv.git"
tmp=`mktemp -d` tmp=`mktemp -d`
@ -22,8 +24,8 @@ for p in `cat ./patches/series`; do
cat ./patches/$p | patch -d $tmp/libmv -p1 cat ./patches/$p | patch -d $tmp/libmv -p1
done done
rm -rf libmv find libmv -type f -not -iwholename '*.svn*' -exec rm -rf {} \;
rm -rf third_party find third_party -type f -not -iwholename '*.svn*' -exec rm -rf {} \;
cat "files.txt" | while read f; do cat "files.txt" | while read f; do
mkdir -p `dirname $f` mkdir -p `dirname $f`