Skip to content

Commit 7c72d1e

Browse files
committed
Reorganize files
1 parent ce57dda commit 7c72d1e

File tree

9 files changed

+30
-33
lines changed

9 files changed

+30
-33
lines changed

.elpaignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
.gitignore
44
LICENSE
55
Makefile
6-
doc2texi.el
7-
gnuplot-debug-context.el
8-
gnuplot-test-context.el
9-
gnuplot-tests.el
6+
admin
7+
test

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.elc
22
*.tar.*
33
*~
4-
\#*\#
54
/*-autoloads.el
65
/*-pkg.el
7-
/gnuplot-*/
6+
/admin/*/
7+
\#*\#

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
EMACS ?= emacs
2-
31
LOAD = -l gnuplot \
42
-l gnuplot-context \
53
-l gnuplot-debug-context \
64
-l gnuplot-gui \
7-
-l gnuplot-tests
5+
-l gnuplot-test
86

9-
.PHONY: all default clean
7+
.PHONY: all default clean regen test
108

119
default: compile
1210

1311
test:
14-
$(EMACS) --batch -L . -f package-initialize $(LOAD) -f ert-run-tests-batch-and-exit
12+
emacs --batch -L test -L . -f package-initialize $(LOAD) -f ert-run-tests-batch-and-exit
1513

1614
compile:
17-
$(EMACS) --batch -L . -f package-initialize -f batch-byte-compile gnuplot-*.el
15+
emacs --batch -L test -L . -f package-initialize -f batch-byte-compile gnuplot-*.el test/gnuplot-*.el
1816

1917
clean:
20-
rm -f *.elc
18+
rm -f *.elc */*.elc

README.org

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,5 @@ until this issue is fixed upstream.
137137

138138
The files ~gnuplot.texi~ and ~gnuplot-eldoc.el~ are generated from the Gnuplot
139139
source, which can be obtained from https://packages.debian.org/unstable/gnuplot.
140-
141-
#+begin_src bash
142-
# Download and extract the Gnuplot source
143-
[ -e gnuplot-source.tar.xz ] || curl -o gnuplot-source.tar.xz http://deb.debian.org/debian/pool/main/g/gnuplot/gnuplot_6.0.2+dfsg1.orig.tar.xz
144-
rm -rf gnuplot-source/
145-
mkdir gnuplot-source
146-
tar --strip-components=1 -C gnuplot-source -xf gnuplot-source.tar.xz
147-
148-
# Run doc2texi.el inside the gnuplot-source/docs directory
149-
cp doc2texi.el gnuplot-source/docs
150-
cd gnuplot-source/docs
151-
emacs -batch -l doc2texi.el -f d2t-doc-to-texi
152-
153-
# Make sure that the info file compiles cleanly
154-
makeinfo --no-split gnuplot.texi
155-
156-
# Copy the updated gnuplot-eldoc.el and gnuplot.texi to the package directory
157-
cp gnuplot.texi gnuplot-eldoc.el ../..
158-
#+end_src
140+
Run ~make~ inside the ~admin~ directory to download the source and regenerate the
141+
files.

admin/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
src = gnuplot-source
2+
3+
regen:
4+
# Download and extract the Gnuplot source
5+
[ -e $(src).tar.xz ] || curl -o $(src).tar.xz http://deb.debian.org/debian/pool/main/g/gnuplot/gnuplot_6.0.2+dfsg1.orig.tar.xz
6+
rm -rf $(src)/
7+
mkdir $(src)
8+
tar --strip-components=1 -C $(src) -xf $(src).tar.xz
9+
10+
# Run doc2texi.el inside the $(src)/docs directory
11+
cp doc2texi.el $(src)/docs
12+
(cd $(src)/docs; emacs --batch -l doc2texi.el -f d2t-doc-to-texi)
13+
14+
# Make sure that the info file compiles cleanly
15+
(cd $(src)/docs; makeinfo --no-split gnuplot.texi)
16+
17+
# Copy the updated gnuplot-eldoc.el and gnuplot.texi to the package directory
18+
cp $(src)/docs/gnuplot.texi $(src)/docs/gnuplot-eldoc.el ..
File renamed without changes.
File renamed without changes.
File renamed without changes.

gnuplot-tests.el renamed to test/gnuplot-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ mutliple # lines #")
249249
'comment' \
250250
\"containing strings\"")
251251

252-
;;; gnuplot-tests.el ends here
252+
;;; gnuplot-test.el ends here

0 commit comments

Comments
 (0)