Index: third_party/sqlite/README.chromium |
diff --git a/third_party/sqlite/README.chromium b/third_party/sqlite/README.chromium |
index ebad10a84ff246499503b99b7ebc542950d54415..330ac899144d4aa8f8b1da0d58ea1e3807ad87da 100644 |
--- a/third_party/sqlite/README.chromium |
+++ b/third_party/sqlite/README.chromium |
@@ -141,6 +141,12 @@ unzip sqlite-src-${VERSION}.zip |
rm sqlite-src-${VERSION}.zip |
# -f includes ignored files, of which there are a couple. |
git add -f sqlite-src-${VERSION}/ |
+# Sometimes DOS line endings sneak into the source code. This command works on |
+# OSX and Linux and fixes those files, but double-check the results before |
+# committing: |
+egrep --exclude="*.eps" --exclude="*.ico" --exclude="*.jpg" \ |
+ --exclude="*.gif" --exclude="*.tiff" -URl '\r' . | \ |
+ LANG=C xargs sed -i~ -e $'s/\r$//' |
git commit -m "Begin import of sqlite-src-${VERSION}" sqlite-src-${VERSION} |
rm -rf src |
cp -a sqlite-src-${VERSION} src |