]> git.eshelyaron.com Git - emacs.git/commitdiff
Complete working version
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 8 Mar 2018 22:55:35 +0000 (22:55 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Thu, 8 Mar 2018 22:55:35 +0000 (22:55 +0000)
Makefile.in
configure.ac
elpa/Makefile.in
elpa/bin/deploy-elpa [changed mode: 0644->0755]

index a993452174577bc95781116397eb7e702a6e325f..b66135fe6082c02d66e95c200e5998667731e539 100644 (file)
@@ -398,10 +398,10 @@ lib-src src: $(NTDIR) lib
 src: lib-src
 
 # We need to build 'emacs' in 'src' to compile the *.elc files in 'lisp'.
-lisp: src
+lisp: src elpa
 
 # These targets should be "${SUBDIR} without 'src'".
-lib lib-src lisp nt: Makefile
+elpa lib lib-src lisp nt: Makefile
        $(MAKE) -C $@ all
 
 # Ideally, VCSWITNESS should be a file that is modified whenever the
@@ -815,7 +815,7 @@ endef
 ###      target for GCC does not delete 'libgcc.a', because recompiling it
 ###      is rarely necessary and takes a lot of time.
 mostlyclean_dirs = src oldXMenu lwlib lib lib-src nt doc/emacs doc/misc \
-  doc/lispref doc/lispintro
+  doc/lispref doc/lispintro elpa
 
 $(foreach dir,$(mostlyclean_dirs),$(eval $(call submake_template,$(dir),mostlyclean)))
 
@@ -1055,7 +1055,7 @@ uninstall-ps: $(UNINSTALL_PS)
 # would require changing every rule in doc/ that builds an info file,
 # and it's not worth it.  This case is only relevant if you download a
 # release, then change the .texi files.
-info:
+info: elpa
   ifneq ($(HAVE_MAKEINFO),no)
        $(MAKE) info-real info-dir
   endif
index d2269d6f35be4227968724baf265b9501f5a716c..c7144414dc62187d435376f39cebefdacded2cb5 100644 (file)
@@ -5051,6 +5051,7 @@ AC_SUBST(bitmapdir)
 AC_SUBST(gamedir)
 AC_SUBST(gameuser)
 AC_SUBST(gamegroup)
+AC_SUBST(elpadir)
 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
 ## end of LIBX_BASE, but nothing ever set it.
@@ -5539,7 +5540,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)
 
index 756d9a3ee8645e9dfa6a5db68f741874052f81de..c4c252616103c93cd9a869419a4fbb5949971830 100644 (file)
@@ -1,7 +1,9 @@
+all: ensure-dir repo working/pabbrev
+
 ensure-dir:
-       -mkdir working
-       -mkdir ../lisp/elpa
-       -mkdir ../test/lisp/elpa
+       - mkdir working
+       - mkdir ../lisp/elpa
+       - mkdir ../test/lisp/elpa
 
 repo:
        git clone --mirror https://git.savannah.gnu.org/git/emacs/elpa.git repo
@@ -9,7 +11,13 @@ repo:
 repo-update: repo
        cd repo;git fetch --all
 
-pabbrev:
-       - mkdir pabbrev
-       cd repo;git archive d28cf8632d2691dc93afbb28500126242d37961c | tar xv --directory ../pabbrev
-       cp pabbrev/pabbrev.el ../lisp/elpa/
+working/pabbrev:
+       ./bin/deploy-elpa d28cf8632d2691dc93afbb28500126242d37961c pabbrev
+
+clean:
+       rm -rf working
+       rm -rf ../lisp/elpa
+       rm -rf ../test/lisp/elpa
+
+distclean: clean
+       rm -rf repo
old mode 100644 (file)
new mode 100755 (executable)
index 5a0c530..6a82649
@@ -3,20 +3,26 @@
 shopt -s extglob
 
 generate_source(){
-    git_treeish = $1
-    package_name = $2
+    git_treeish=$1
+    package_name=$2
 
+    echo git_treeish $git_treeish
+    echo package_name $package_name
     mkdir working/$package_name
 
     cd repo
-    git archive $i | tar xv --directory ../working/$package_name
+    git archive $git_treeish | tar xv --directory ../working/$package_name
+    cd ..
 }
 
 deploy_source(){
-    package_name = $1
+    package_name=$1
 
     cd working/$package_name
-    cp *!(test)*.el ../../lisp/elpa
-    cp *.texi ../../doc/elpa
-    cp *test*.el ../../test/lisp/elpa
+    rsync -i --ignore-missing-args *!(test)*.el ../../../lisp/elpa
+    rsync -i --ignore-missing-args *.texi ../../../doc/elpa
+    rsync -i --ignore-missing-args *test*.el ../../../test/lisp/elpa
 }
+
+generate_source $1 $2
+deploy_source $2