Permalink
Browse files

Add build script

To build, run bin/build - it will concat the relevant files and byte-compile
  • Loading branch information...
1 parent e45db6a commit 2db499a585f8b6015f6679ffd47176f090477fbc @thomblake committed Aug 9, 2011
Showing with 11,130 additions and 2 deletions.
  1. +6 −0 bin/build
  2. +8 −2 js3.el
  3. +2,634 −0 lib/js3-ast.el
  4. +406 −0 lib/js3-browse.el
  5. +236 −0 lib/js3-externs.el
  6. +1,312 −0 lib/js3-foot.el
  7. +85 −0 lib/js3-head.el
  8. +454 −0 lib/js3-highlight.el
  9. +740 −0 lib/js3-indent.el
  10. +643 −0 lib/js3-messages.el
  11. +2,328 −0 lib/js3-parse.el
  12. +845 −0 lib/js3-scan.el
  13. +265 −0 lib/js3-util.el
  14. +1,168 −0 lib/js3-vars.el
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+git status 2> /dev/null 1> /dev/null || (echo "Not in git repository" && exit 0)
+cd $(git rev-parse --show-toplevel) || (echo "Can't find root directory" && exit 0)
+cat lib/js3-head.el lib/js3-externs.el lib/js3-vars.el lib/js3-util.el lib/js3-scan.el lib/js3-messages.el lib/js3-ast.el lib/js3-highlight.el lib/js3-browse.el lib/js3-parse.el lib/js3-indent.el lib/js3-foot.el > js3.el
+emacs --batch -f batch-byte-compile js3.el
View
@@ -1,7 +1,7 @@
;;; js3.el -- an improved JavaScript editing mode
;;;
-;;; js3-mode.el --- an improved JavaScript editing mode
+;;; js3-head.el
;; Author: Thom Blake (webmaster@thomblake.com)
;; Authors of historical versions:
@@ -82,6 +82,9 @@
;;; Code:
+;;; js3-head.el ends here
+;;; js3-externs.el -- external name definitions
+
(defvar js3-ecma-262-externs
(mapcar 'symbol-name
'(Array
@@ -3235,6 +3238,8 @@ the correct number of ARGS must be provided."
"Yield from closing generator")
(provide 'js3-messages)
+
+;; js3-messages.el ends here
;;; js3-ast.el --- JavaScript syntax tree node definitions
;;; Code:
@@ -9797,6 +9802,7 @@ nil."
(when (> offset 0) (forward-char offset)))))
;;; js3-indent.el ends here
+;;; js3-foot.el
(eval-when-compile
(require 'cl))
@@ -11105,6 +11111,6 @@ it marks the next defun after the ones already marked."
(provide 'js3-mode)
-;;; js3-mode.el ends here
+;;; js3-foot.el ends here
;;; js3.el ends here
Oops, something went wrong.

0 comments on commit 2db499a

Please sign in to comment.