Make the FB stuff easier to reason about

This commit is contained in:
John Doty 2016-09-26 10:50:00 -07:00
parent a23fc9f865
commit a89cc66ee3

View file

@ -52,11 +52,19 @@
;; ================================================================= ;; =================================================================
(defconst master-dir (getenv "LOCAL_ADMIN_SCRIPTS")) (defconst master-dir (getenv "LOCAL_ADMIN_SCRIPTS"))
(defconst engshare-master (getenv "ADMIN_SCRIPTS")) (defconst engshare-master (getenv "ADMIN_SCRIPTS"))
(defconst is-fb-environment
(or (file-exists-p (expand-file-name "master.emacs" master-dir))
(file-exists-p (expand-file-name "master.emacs" engshare-master))))
(if is-fb-environment
(progn
;; Load the master.emacs file which apparently has stuff in it I want?
(if (file-exists-p (expand-file-name "master.emacs" master-dir)) (if (file-exists-p (expand-file-name "master.emacs" master-dir))
(load-library (expand-file-name "master.emacs" master-dir)) (load-library (expand-file-name "master.emacs" master-dir))
(if (file-exists-p (expand-file-name "master.emacs" engshare-master)) (if (file-exists-p (expand-file-name "master.emacs" engshare-master))
(load-library (expand-file-name "master.emacs" engshare-master)))) (load-library (expand-file-name "master.emacs" engshare-master))))
;; Set up the proxy for working properly from the devserver.
(if (and (if (and
(getenv "HOSTNAME") (getenv "HOSTNAME")
(string-match-p ".+\.prn1\.facebook\.com" (getenv "HOSTNAME"))) (string-match-p ".+\.prn1\.facebook\.com" (getenv "HOSTNAME")))
@ -65,6 +73,11 @@
("http" . "fwdproxy:8080") ("http" . "fwdproxy:8080")
("https" . "fwdproxy:8080")))) ("https" . "fwdproxy:8080"))))
;; Hack support for stuff in www
(setq hack-for-hiphop-root (expand-file-name "www" "~"))
(load "/home/engshare/tools/hack-for-hiphop")
))
;; ================================================================= ;; =================================================================
;; Common stuff that's needed once ;; Common stuff that's needed once
;; ================================================================= ;; =================================================================