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

Unified Diff: frog/tip/create_fftip.py

Issue 8889031: move tip to utils so it can be picked up in the SDK (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « frog/tip/copy_libs.py ('k') | frog/tip/dart128.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tip/create_fftip.py
diff --git a/frog/tip/create_fftip.py b/frog/tip/create_fftip.py
deleted file mode 100644
index e7ad12d9a12a7f6768eaa32d47686dd22617d8aa..0000000000000000000000000000000000000000
--- a/frog/tip/create_fftip.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/local/evn python
-# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-# for details. All rights reserved. Use of this source code is governed by a
-# BSD-style license that can be found in the LICENSE file.
-
-# This is a first stab at creating a Firefox extension which can run Dart
-# code by using frog's in-browser compilation. This is a minimal attempt,
-# with a UI that needs a total gutting, but it gets things start in Firefox.
-# Over time, I hope that Dart in FF becomes a really nice development path.
-
-# This script first calls copy_libs.py to get the libs staged correctly.
-
-import os
-import shutil
-import fileinput
-import re
-import subprocess
-import sys
-
-TIP_PATH = os.path.dirname(os.path.abspath(__file__))
-FROG_PATH = os.path.dirname(TIP_PATH)
-LIB_PATH = os.path.join(FROG_PATH, 'lib')
-FFTIP_PATH = os.path.join(TIP_PATH, 'fftip')
-FFTIP_CONTENT_PATH = os.path.join(FFTIP_PATH, 'chrome', 'content')
-FFTIP_LIB_PATH = os.path.join(FFTIP_CONTENT_PATH, 'lib')
-FFTIP_XPI = os.path.join(TIP_PATH, 'fftip.xpi')
-
-def main():
- subprocess.call([sys.executable, './copy_libs.py'])
- if (os.path.exists(FFTIP_LIB_PATH)):
- shutil.rmtree(FFTIP_LIB_PATH)
- if (os.path.exists(FFTIP_XPI)):
- os.remove(FFTIP_XPI)
- shutil.copytree(LIB_PATH, FFTIP_LIB_PATH,
- ignore=shutil.ignore_patterns('.svn'))
-
- for file in os.listdir(TIP_PATH):
- if (file.endswith('.css') or file.endswith('.gif') or
- file.endswith('.html') or file.endswith('.js')):
- shutil.copy(file, FFTIP_CONTENT_PATH)
-
- os.system('cd %s; zip --exclude=*/.svn* -r %s *' % (FFTIP_PATH, FFTIP_XPI))
- print('Generated Firefox extension at %s' % FFTIP_XPI)
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « frog/tip/copy_libs.py ('k') | frog/tip/dart128.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698