Skip to content

Commit

Permalink
Added vcxsources.sh.
Browse files Browse the repository at this point in the history
This is a quick-and-dirty script to pull the source files out of a .vcxproj,
so you can dump them into a CMakeLists.txt or Makefile or whatever.
  • Loading branch information
icculus committed Sep 1, 2017
1 parent 0484d69 commit e075687
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vcxsources.sh
@@ -0,0 +1,11 @@
#!/bin/bash

if [ -z "$1" ]; then
echo "USAGE: $0 <my.vcxproj>" 1>&2
exit 1
fi

grep 'ClCompile' "$1" |perl -w -p -e 's/\A\s+\<\/?ClCompile\>//;s/\r//g; s/\A\s*\<ClCompile Include="//; s#"\s*/\>##; s#\\#/#g; s/\A\n\Z//;' |sort |uniq
exit 0


0 comments on commit e075687

Please sign in to comment.