first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / core / tools / solution_solvers / extract_projects.sh
1 #!/bin/bash
2
3 # this is a simple script that finds the project files listed in a solution file.
4
5 solution_name="$1"; shift
6 if [ -z "$solution_name" ]; then
7   echo This script needs a solution or project file name.  It will locate all the
8   echo projects listed in that file.
9   exit 3
10 fi
11
12 grep -i proj "$solution_name" | sed -n -e 's/.*"\([^"]*proj\)".*/\1/p' | sed -e 's/.*[\\\/]\([^\\\/]*\)/\1/' | tr A-Z a-z | sort | uniq
13