File: vs2008_x64.sh

package info (click to toggle)
libvmdk 20160119-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,600 kB
  • ctags: 4,882
  • sloc: ansic: 171,049; sh: 12,586; makefile: 1,220; python: 543; sed: 134
file content (28 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Script to add x64 platform to msvscpp 2008 files
#
# Version: 20130113

EXIT_FAILURE=1;
EXIT_SUCCESS=0;

if [ ! -x "/usr/bin/find" ] || [ ! -x "/usr/bin/sed" ];
then
	echo "Unable to find: /usr/bin/find and /usr/bin/sed.";

	exit ${EXIT_FAILURE};
fi

if [ ! -e "msvscpp/scripts/vs2008_x64_sln.sed" ] || [ ! -e "msvscpp/scripts/vs2008_x64_vcproj.sed" ];
then
	echo "Unable to find the sed scripts.";
	echo "Are you running the script from the source directory?";

	exit ${EXIT_FAILURE};
fi

/usr/bin/find msvscpp/ -name \*.sln -exec /usr/bin/sed -b -f msvscpp/scripts/vs2008_x64_sln.sed -i {} \;
/usr/bin/find msvscpp/ -name \*.vcproj -exec /usr/bin/sed -b -f msvscpp/scripts/vs2008_x64_vcproj.sed -i {} \;

exit ${EXIT_SUCCESS};