Skip to content

Commit 635cda7

Browse files
committed
bulk rename/convert/strip to purescript
1 parent c2206c9 commit 635cda7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3373
-11711
lines changed

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*.elc
22
*~
3-
haskell-mode-autoloads.el
4-
haskell-mode.info
5-
haskell-mode.tmp.texi
6-
dir
3+
purescript-mode-autoloads.el
4+
purescript-mode.info
5+
purescript-mode.tmp.texi
6+
dir

Makefile

+43-58
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,34 @@ BATCH = $(EMACS) $(EFLAGS) --batch -Q -L .
88
SUBST_ATAT = sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g;s/@GIT_VERSION@/$(GIT_VERSION)/g;s/@@VERSION@@/$(VERSION)/g;s/@VERSION@/$(VERSION)/g'
99

1010
ELFILES = \
11-
ghc-core.el \
12-
haskell-align-imports.el \
13-
haskell-c.el \
14-
haskell-cabal.el \
15-
haskell-checkers.el \
16-
haskell-compat.el \
17-
haskell-compile.el \
18-
haskell-decl-scan.el \
19-
haskell-doc.el \
20-
haskell-font-lock.el \
21-
haskell-indent.el \
22-
haskell-indentation.el \
23-
haskell-collapse.el \
24-
haskell-interactive-mode.el \
25-
haskell-menu.el \
26-
haskell-mode.el \
27-
haskell-move-nested.el \
28-
haskell-navigate-imports.el \
29-
haskell-package.el \
30-
haskell-process.el \
31-
haskell-session.el \
32-
haskell-show.el \
33-
haskell-simple-indent.el \
34-
haskell-sort-imports.el \
35-
haskell-string.el \
36-
haskell-str.el \
37-
haskell-unicode-input-method.el \
38-
haskell-utils.el \
39-
haskell-yas.el \
40-
haskell-presentation-mode.el \
41-
inf-haskell.el
11+
purescript-align-imports.el \
12+
purescript-collapse.el \
13+
purescript-font-lock.el \
14+
purescript-indent.el \
15+
purescript-indentation.el \
16+
purescript-mode.el \
17+
purescript-move-nested.el \
18+
purescript-navigate-imports.el \
19+
purescript-package.el \
20+
purescript-simple-indent.el \
21+
purescript-sort-imports.el \
22+
purescript-str.el \
23+
purescript-string.el \
24+
purescript-unicode-input-method.el \
25+
purescript-utils.el \
26+
purescript-yas.el
4227

4328
ELCFILES = $(ELFILES:.el=.elc)
44-
AUTOLOADS = haskell-mode-autoloads.el
29+
AUTOLOADS = purescript-mode-autoloads.el
4530

46-
PKG_DIST_FILES = $(ELFILES) logo.svg NEWS haskell-mode.info dir
47-
PKG_TAR = haskell-mode-$(VERSION).tar
31+
PKG_DIST_FILES = $(ELFILES) logo.svg NEWS purescript-mode.info dir
32+
PKG_TAR = purescript-mode-$(VERSION).tar
4833
ELCHECKS=$(addprefix check-, $(ELFILES:.el=))
4934

5035
%.elc: %.el
5136
@$(BATCH) \
5237
--eval "(byte-compile-disable-warning 'cl-functions)" \
53-
-f batch-byte-compile $<
38+
-f batch-byte-compile $<
5439

5540
.PHONY: all compile info clean check $(ELCHECKS) elpa package
5641

@@ -61,7 +46,7 @@ compile: $(ELCFILES)
6146
$(ELCHECKS): check-%: %.el
6247
@$(BATCH) --eval '(when (check-declare-file "$*.el") (error "check-declare failed"))'
6348
@$(BATCH) \
64-
--eval "(setq byte-compile-error-on-warn t)" \
49+
--eval "(setq byte-compile-error-on-warn t)" \
6550
--eval "(byte-compile-disable-warning 'cl-functions)" \
6651
-f batch-byte-compile $*.el
6752
@$(RM) $*.elc
@@ -79,47 +64,47 @@ check: clean $(ELCHECKS)
7964
@echo "checks passed!"
8065

8166
clean:
82-
$(RM) $(ELCFILES) $(AUTOLOADS) $(AUTOLOADS:.el=.elc) $(PKG_TAR) haskell-mode.tmp.texi haskell-mode.info dir
67+
$(RM) $(ELCFILES) $(AUTOLOADS) $(AUTOLOADS:.el=.elc) $(PKG_TAR) purescript-mode.tmp.texi purescript-mode.info dir
8368

84-
info: haskell-mode.info dir
69+
info: purescript-mode.info dir
8570

86-
dir: haskell-mode.info
71+
dir: purescript-mode.info
8772
$(INSTALL_INFO) --dir=$@ $<
8873

89-
haskell-mode.tmp.texi: haskell-mode.texi
90-
$(SUBST_ATAT) < haskell-mode.texi > haskell-mode.tmp.texi
74+
purescript-mode.tmp.texi: purescript-mode.texi
75+
$(SUBST_ATAT) < purescript-mode.texi > purescript-mode.tmp.texi
9176

92-
haskell-mode.info: haskell-mode.tmp.texi
77+
purescript-mode.info: purescript-mode.tmp.texi
9378
$(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $<
9479

95-
haskell-mode.html: haskell-mode.tmp.texi
80+
purescript-mode.html: purescript-mode.tmp.texi
9681
$(MAKEINFO) $(MAKEINFO_FLAGS) --html --no-split -o $@ $<
9782

9883
# Generate ELPA-compatible package
9984
package: $(PKG_TAR)
10085
elpa: $(PKG_TAR)
10186

102-
$(PKG_TAR): $(PKG_DIST_FILES) haskell-mode-pkg.el.in
103-
rm -rf haskell-mode-$(VERSION)
104-
mkdir haskell-mode-$(VERSION)
105-
cp $(PKG_DIST_FILES) haskell-mode-$(VERSION)/
106-
$(SUBST_ATAT) < haskell-mode-pkg.el.in > haskell-mode-$(VERSION)/haskell-mode-pkg.el
107-
$(SUBST_ATAT) < haskell-mode.el > haskell-mode-$(VERSION)/haskell-mode.el
108-
(sed -n -e '/^;;; Commentary/,/^;;;/p' | egrep '^;;( |$$)' | cut -c4-) < haskell-mode.el > haskell-mode-$(VERSION)/README
109-
tar cvf $@ haskell-mode-$(VERSION)
110-
rm -rf haskell-mode-$(VERSION)
87+
$(PKG_TAR): $(PKG_DIST_FILES) purescript-mode-pkg.el.in
88+
rm -rf purescript-mode-$(VERSION)
89+
mkdir purescript-mode-$(VERSION)
90+
cp $(PKG_DIST_FILES) purescript-mode-$(VERSION)/
91+
$(SUBST_ATAT) < purescript-mode-pkg.el.in > purescript-mode-$(VERSION)/purescript-mode-pkg.el
92+
$(SUBST_ATAT) < purescript-mode.el > purescript-mode-$(VERSION)/purescript-mode.el
93+
(sed -n -e '/^;;; Commentary/,/^;;;/p' | egrep '^;;( |$$)' | cut -c4-) < purescript-mode.el > purescript-mode-$(VERSION)/README
94+
tar cvf $@ purescript-mode-$(VERSION)
95+
rm -rf purescript-mode-$(VERSION)
11196
@echo
11297
@echo "Created ELPA compatible distribution package '$@' from $(GIT_VERSION)"
11398

114-
$(AUTOLOADS): $(ELFILES) haskell-mode.elc
99+
$(AUTOLOADS): $(ELFILES) purescript-mode.elc
115100
$(BATCH) \
116101
--eval '(setq make-backup-files nil)' \
117102
--eval '(setq generated-autoload-file "$(CURDIR)/$@")' \
118103
-f batch-update-autoloads "."
119104

120105
# HACK: embed version number into .elc file
121-
haskell-mode.elc: haskell-mode.el
122-
$(SUBST_ATAT) < haskell-mode.el > haskell-mode.tmp.el
123-
@$(BATCH) --eval "(byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile haskell-mode.tmp.el
124-
mv haskell-mode.tmp.elc haskell-mode.elc
125-
$(RM) haskell-mode.tmp.el
106+
purescript-mode.elc: purescript-mode.el
107+
$(SUBST_ATAT) < purescript-mode.el > purescript-mode.tmp.el
108+
@$(BATCH) --eval "(byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile purescript-mode.tmp.el
109+
mv purescript-mode.tmp.elc purescript-mode.elc
110+
$(RM) purescript-mode.tmp.el

0 commit comments

Comments
 (0)