]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Update auxprogs/update-demangler for Valgrind in GIT.
authorIvo Raisr <ivosh@ivosh.net>
Sun, 26 Feb 2017 04:02:33 +0000 (05:02 +0100)
committerIvo Raisr <ivosh@ivosh.net>
Mon, 14 Aug 2017 13:27:30 +0000 (15:27 +0200)
auxprogs/update-demangler

index 8c1bbaa40324e8bcc4e3dcf57c099e49081928e9..2a788b8bec8d794547491dcfe18f8fb6dc4985aa 100755 (executable)
@@ -88,10 +88,18 @@ cp    ../gcc-$new_gcc_revision/libiberty/rust-demangle.c .
 cp    ../gcc-$new_gcc_revision/libiberty/safe-ctype.c .
 cd ..
 
-# 5) Check out valgrind coregrind/m_demangle into old_m_demangle
+# 5) Sparse check out valgrind coregrind/m_demangle into old_m_demangle
 echo "Checking out coregrind/m_demangle"
-svn co svn://svn.valgrind.org/valgrind/trunk/coregrind/m_demangle old_m_demangle > /dev/null
-rm -rf old_m_demangle/.svn
+mkdir valgrind-sparse-clone
+cd valgrind-sparse-clone
+git init
+git remote add origin -f git://sourceware.org/git/valgrind.git/
+git config core.sparsecheckout true
+echo "coregrind/m_demangle/*" > .git/info/sparse-checkout
+git pull origin master
+cd ..
+mv valgrind-sparse-clone/coregrind/m_demangle old_m_demangle
+rm -rf valgrind-sparse-clone
 
 # 6) Create new_m_demangle
 cp -rp old_m_demangle new_m_demangle