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

Side by Side Diff: third_party/lit/utils/check-sdist

Issue 1663053003: [fusl] Add llvm's lit tool to third_party (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: move down a dir Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/lit/utils/check-coverage ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 if [ $# = 1 ]; then
4 cd $1
5 fi
6
7 # Create a list of all the files in the source tree, excluding various things we
8 # know don't belong.
9 echo "Creating current directory contents list."
10 find . | \
11 grep -v '^\./.gitignore' | \
12 grep -v '^\./dist' | \
13 grep -v '^\./utils' | \
14 grep -v '^\./venv' | \
15 grep -v '^\./notes.txt' | \
16 grep -v '^\./lit.egg-info' | \
17 grep -v '^\./lit/ExampleTests' | \
18 grep -v '/Output' | \
19 grep -v '__pycache__' | \
20 grep -v '.pyc$' | grep -v '~$' | \
21 sort > /tmp/lit_source_files.txt
22
23 # Create the source distribution.
24 echo "Creating source distribution."
25 rm -rf lit.egg-info dist
26 python setup.py sdist > /tmp/lit_sdist_log.txt
27
28 # Creating list of files in source distribution.
29 echo "Creating source distribution file list."
30 tar zft dist/lit*.tar.gz | \
31 sed -e 's#lit-[0-9.dev]*/#./#' | \
32 sed -e 's#/$##' | \
33 grep -v '^\./PKG-INFO' | \
34 grep -v '^\./setup.cfg' | \
35 grep -v '^\./lit.egg-info' | \
36 sort > /tmp/lit_sdist_files.txt
37
38 # Diff the files.
39 echo "Running diff..."
40 if (diff /tmp/lit_source_files.txt /tmp/lit_sdist_files.txt); then
41 echo "Diff is clean!"
42 else
43 echo "error: there were differences in the source lists!"
44 exit 1
45 fi
OLDNEW
« no previous file with comments | « third_party/lit/utils/check-coverage ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698