MSVC 2012/2013 Support: Update Property Sheet Creation
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 1 Jul 2014 08:08:21 +0000 (16:08 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 1 Jul 2014 08:08:21 +0000 (16:08 +0800)
Be a bit more careful when copying and updating the property sheets, so that
we don't accidently change fields with '10' in them that are actually not
indicating the Visual Studio version.

build/Makefile-newvs.am

index 04d2405..e63b15f 100644 (file)
@@ -26,7 +26,7 @@ create_vcxproj:
 create_props:
        for F in `(cd $(top_builddir)/build/win32/vs10 && ls *.props)`; do \
                case $$F in \
-                       *)      cat $(top_builddir)/build/win32/vs10/$$F | sed 's/10/$(MSVC_VER)/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$$F \
+                       *)      cat $(top_builddir)/build/win32/vs10/$$F | sed 's/<VSVer>10<\/VSVer>/<VSVer>$(MSVC_VER)<\/VSVer>/g' > $(top_builddir)/build/win32/vs$(MSVC_VER)/$$F \
                        ;; \
                esac; \
        done