Skip to content
Browse files

fix indentation under package for actionscript

  • Loading branch information...
1 parent 32b3e66 commit 0c012f32f72ac4e70e04d682aecacf8aacfc05ad Brian Sharon committed Aug 31, 2011
Showing with 61 additions and 5 deletions.
  1. +11 −0 bin/import-cert.sh
  2. +45 −0 bin/start_flee.rb
  3. +5 −5 emacs/actionscript-mode-connors.el
View
11 bin/import-cert.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# usage: import-cert.sh remote.host.name [port]
+#
+REMHOST=$1
+REMPORT=${2:-443}
+exec 6>&1
+exec > $REMHOST
+echo | openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
+certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "$REMHOST" -i $REMHOST
+exec 1>&6 6>&-
View
45 bin/start_flee.rb
@@ -0,0 +1,45 @@
+#!/usr/bin/env ruby
+
+def execute cmd
+ puts cmd
+ `#{cmd}`
+end
+
+# Set up link to mysql socket file
+GOOGLE3 = "#{ENV["HOME"]}/clients/picnik/google3"
+
+# Start up all the needed services
+
+services = [{ :windowTitle => 'Closure test server',
+ :commandLine => './flee.sh build serve && read -p \"Press any key...\" -n 1 && echo',
+ :workingDirectory => "#{GOOGLE3}/javascript/apps/picnik/flee"
+ },
+
+ { :windowTitle => 'Java frontend',
+ :commandLine => './flee.sh build serve && read -p \"Press any key...\" -n 1 && echo',
+ :workingDirectory => "#{GOOGLE3}/java/com/google/apps/picnik/flee"
+ },
+
+ { :windowTitle => 'Render server',
+ :commandLine => './flee.sh build runserver && read -p \"Press any key...\" -n 1 && echo',
+ :workingDirectory => "#{GOOGLE3}/apps/picnik/flee"
+ },
+
+ ];
+
+# require 'rubygems'
+# require 'ruby-debug'
+# Debugger.start
+# debugger
+
+option_string = ""
+
+services.each do |x|
+ option_string += "--tab-with-profile=Default --working-directory=#{x[:workingDirectory]} -t \"#{x[:windowTitle]}\" -e 'bash -i -c \"#{x[:commandLine]}\"' "
+end
+
+fork {
+ cmd = "gnome-terminal #{option_string}"
+ puts cmd
+ exec cmd
+}
View
10 emacs/actionscript-mode-connors.el
@@ -79,7 +79,7 @@
(c-lang-defconst c-class-decl-kwds
actionscript
- '("class" "interface"))
+ '("class" "interface" "package"))
(c-lang-defconst c-opt-cpp-prefix
actionscript
@@ -94,12 +94,12 @@
;; treating it as a modifier works fairly well.
(c-lang-defconst c-modifier-kwds
actionscript
- '("function" "dynamic" "public" "private" "final" "override" "native"))
+ '("function" "dynamic" "public" "internal" "protected" "private" "final" "override" "native"))
-(c-lang-defconst c-other-block-decl-kwds
- actionscript
- '("package"))
+;; (c-lang-defconst c-other-block-decl-kwds
+;; actionscript
+;; '("package"))
(c-lang-defconst c-typeless-decl-kwds
actionscript

0 comments on commit 0c012f3

Please sign in to comment.
Something went wrong with that request. Please try again.