diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-28 19:22:59 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-28 19:22:59 +0000 |
commit | 2915cd620ee1348fc43f3326abc0b7252f4b9d0b (patch) | |
tree | 88a682d501775b41278df7780a5591067e300257 /third_party/python_gflags/Makefile | |
parent | 887e4ac50ad9ac62e39d26e2518cf8a975fd2205 (diff) | |
download | chromium_src-2915cd620ee1348fc43f3326abc0b7252f4b9d0b.zip chromium_src-2915cd620ee1348fc43f3326abc0b7252f4b9d0b.tar.gz chromium_src-2915cd620ee1348fc43f3326abc0b7252f4b9d0b.tar.bz2 |
PRESUBMIT check for JavaScript style errors
See https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/97b5dc28d9e5109b/a5bd070bb7f0a4b9
BUG=none
TEST=modify any .js file; `git commit` it; run `git cl presubmit`; look at the errors
Review URL: https://chromiumcodereview.appspot.com/9288045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/python_gflags/Makefile')
-rw-r--r-- | third_party/python_gflags/Makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/third_party/python_gflags/Makefile b/third_party/python_gflags/Makefile new file mode 100644 index 0000000..6627c32 --- /dev/null +++ b/third_party/python_gflags/Makefile @@ -0,0 +1,69 @@ + +prep: + @echo + # Install needed packages + sudo apt-get install subversion fakeroot python-setuptools python-subversion + # + @echo + # Check that the person has .pypirc + @if [ ! -e ~/.pypirc ]; then \ + echo "Please create a ~/.pypirc with the following contents:"; \ + echo "[server-login]"; \ + echo "username:google_opensource"; \ + echo "password:<see valentine>"; \ + fi + # + @echo + # FIXME(tansell): Check that the person has .dputrc for PPA + +clean: + # Clean up any build files. + python setup.py clean --all + # + # Clean up the debian stuff + fakeroot ./debian/rules clean + # + # Clean up everything else + rm MANIFEST || true + rm -rf build-* + # + # Clean up the egg files + rm -rf *egg* + # + # Remove dist + rm -rf dist + +dist: + # Generate the tarball based on MANIFEST.in + python setup.py sdist + # + # Build the debian packages + fakeroot ./debian/rules binary + mv ../python-gflags*.deb ./dist/ + # + # Build the python Egg + python setup.py bdist_egg + # + @echo + @echo "Files to upload:" + @echo "--------------------------" + @ls -l ./dist/ + +push: + # Send the updates to svn + # Upload the source package to code.google.com + - /home/build/opensource/tools/googlecode_upload.py \ + -p python-gflags ./dist/* + # + # Upload the package to PyPi + - python setup.py sdist upload + - python setup.py bdist_egg upload + # + # Upload the package to the ppa + # FIXME(tansell): dput should run here + +check: + # Run all the tests. + for test in tests/*.py; do PYTHONPATH=. python $$test || exit 1; done + +.PHONY: prep dist clean push check |