From: Phillip Lord Date: Sat, 19 Jan 2019 16:52:32 +0000 (+0000) Subject: Extraction of code working X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2cfe57129519a399f56c114a2e1dfd537e76cd0b;p=emacs.git Extraction of code working --- diff --git a/.gitignore b/.gitignore index 53f41f0f3eb..b2ad1f9a4dc 100644 --- a/.gitignore +++ b/.gitignore @@ -148,6 +148,10 @@ test/manual/etags/ETAGS test/manual/etags/CTAGS test/manual/indent/*.new +# ELPA +/elpa/elpa-git/ +/elpa/packages/ + # ctags, etags. TAGS !admin/notes/tags @@ -284,4 +288,4 @@ lib/SYS/ nt/emacs.rc nt/emacsclient.rc src/gdb.ini -/var/ +/var/ \ No newline at end of file diff --git a/configure.ac b/configure.ac index 75297194299..4719a7332f5 100644 --- a/configure.ac +++ b/configure.ac @@ -5679,7 +5679,7 @@ dnl config.status treats $srcdir specially, so I think this is ok... AC_CONFIG_FILES([$srcdir/doc/man/emacs.1]) m4_define([subdir_makefiles], - [lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile]) + [lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile elpa/Makefile]) SUBDIR_MAKEFILES="subdir_makefiles" AC_CONFIG_FILES(subdir_makefiles) diff --git a/elpa/Makefile.in b/elpa/Makefile.in new file mode 100644 index 00000000000..ab73bbc1f26 --- /dev/null +++ b/elpa/Makefile.in @@ -0,0 +1,25 @@ + +all: packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev + + +elpa-git: + git clone --mirror https://git.savannah.gnu.org/git/emacs/elpa.git elpa-git + +elpa-update: elpa-git + cd elpa-git;git fetch --all +.PHONY: elpa-update + +packages: + mkdir packages + +packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev: elpa-update packages + # Remove all version + rm -rf packages/*pabbrev + mkdir packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev + cd elpa-git;\ + git archive d28cf8632d2691dc93afbb28500126242d37961c \ + | tar xv -C ../packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev + + +clean: + rm -rf packages diff --git a/elpa/package-makefile b/elpa/package-makefile new file mode 100644 index 00000000000..be1a0c7a214 --- /dev/null +++ b/elpa/package-makefile @@ -0,0 +1,2 @@ +all: + echo hello world diff --git a/notes.org b/notes.org index f9f676a3545..259299d48ed 100644 --- a/notes.org +++ b/notes.org @@ -6,11 +6,62 @@ Guess we have to use sh 2) How to get specific directory of a repository + + +git archive --remote=phillord@git.savannah.gnu.org:/srv/git/emacs/elpa.git master packages/hydra | tar xv --strip-components=1 + +Currently, this requires a member login -- it doesn't work with http +or the current git server. + +Would also be possible to configure this from local. + 3) How to work out when a directory is out of date wrt to the make file +unpack the directory with the commit + +SHAID-hydra + +Then when the SHA is updated to point somewhere else, magically, the +directory will run out of space + + + 4) Heuristics for working out which files to copy to right place +*-test.el +*-tests.el +/test/*.el + +to test + +All other *el to lisp + +Nothing else + 5) Work out what is the right place to copy to +lisp/elpa/package-name +test/lisp/elpa/package-name + +is my prefered option. Eli may complain in which case "package-name" +can be dropped. + + 6) How to enable ELPA packages to customize the process + +Add the option to run an core-deploy.sh file placed into the root of a +package. + + +7) What about make bootstrap + +I think we would add another command called make clean-elpa which +would delete the elpa extracted files. I'd have to think very +carefully about which clean things I wanted to attach to. a priori +there is no reason to ever check the files out more than once. + + +8) Support other repos + +Org-mode effectively does this already