Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: scripts/update.sh

Issue 2443653002: Delete Visual Studio build files (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.chromium ('k') | source/allinone/allinone.sln » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/update.sh
diff --git a/scripts/update.sh b/scripts/update.sh
index e2642f98d79ad0efff87ff86917bc6c8a8036066..40a66647fac76ee10d84375ec0fc7fb859666fb5 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -22,23 +22,26 @@ svn ls "${repo}" > /dev/null 2>&1 || \
{ echo "${repo} does not exist." >&2; exit 2; }
echo "Cleaning up source/ ..."
-for file in source license.html readme.html APIChangeReport.html
+for file in source LICENSE license.html readme.html APIChangeReport.html
do
rm -rf "${treeroot}/${file}"
done
echo "Download ${version} from the upstream repository ..."
-for file in source license.html readme.html APIChangeReport.html
+for file in source LICENSE license.html readme.html APIChangeReport.html
do
svn export --native-eol LF "${repo}/${file}" "${treeroot}/${file}"
done
echo "deleting directories we don't care about ..."
-for d in layoutex data/xml test
+for d in layoutex data/xml test allinone
do
rm -rf "${treeroot}/source/${d}"
done
+echo "deleting Visual Studio build files ..."
+find "${treeroot}/source" -name *vcxp* -o -name *sln | xargs rm
+
echo "restoring local data and configuration files ..."
while read line
do
@@ -48,6 +51,7 @@ done < "${treeroot}/scripts/data_files_to_preserve.txt"
echo "Patching configure to work without source/layout(ex) directories ..."
sed -i.orig -e '/^ac_config_files=/ s:\ layout\(ex\)\{0,1\}/Makefile::g' \
+ -e '/^ac_config_files=/ s: test/.* samples/M: samples/M:'
"${treeroot}/source/configure"
rm -f "${treeroot}/source/configure.orig"
« no previous file with comments | « README.chromium ('k') | source/allinone/allinone.sln » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698