]> git.eshelyaron.com Git - emacs.git/commitdiff
Build process started
authorPhillip Lord <phillip.lord@russet.org.uk>
Sun, 20 Jan 2019 19:05:24 +0000 (19:05 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Sun, 20 Jan 2019 19:05:24 +0000 (19:05 +0000)
elpa/Makefile.in
elpa/bin/extract-package.sh [new file with mode: 0755]
elpa/bin/package-makefile.mk [new file with mode: 0644]
elpa/package-makefile [deleted file]

index ab73bbc1f26c2a7188da343a910518af07155b65..1469737f560cc9b8fa2acef07b129b5fd25723ad 100644 (file)
@@ -1,25 +1,40 @@
+## Get this stuff from above
+dirstate = .git/logs/HEAD
+VCSWITNESS = $(if $(wildcard $(srcdir)/$(dirstate)),$$(srcdir)/../$(dirstate))
 
-all: packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev
 
+all: pabbrev hydra
 
+../lisp/elpa:
+       mkdir ../lisp/elpa
+
+../test/lisp/elpa:
+       mkdir ../test/lisp/elpa
+
+packages:
+       mkdir packages
+
+# The location of this needs to be configurable in some way
 elpa-git:
        git clone --mirror https://git.savannah.gnu.org/git/emacs/elpa.git elpa-git
 
-elpa-update: elpa-git
+elpa-update: $(VCSWITNESS) elpa-git
        cd elpa-git;git fetch --all
-.PHONY: elpa-update
 
-packages:
-       mkdir packages
+directories: packages ../lisp/elpa ../test/lisp/elpa
+
+.PHONY: elpa-update directories
+
+packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev: elpa-update directories
+       ./bin/extract-package.sh -s d28cf8632d2691dc93afbb28500126242d37961c -p pabbrev -e
 
-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
+pabbrev: packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev
+       $(MAKE) -C packages/d28cf8632d2691dc93afbb28500126242d37961c-pabbrev/ -f package-makefile.mk deploy
 
+packages/cba688842ac089ad516155d1b2d6d73826929449-hydra: elpa-update directories
+       ./bin/extract-package.sh -s cba688842ac089ad516155d1b2d6d73826929449 -p hydra
 
+hydra: packages/cba688842ac089ad516155d1b2d6d73826929449-hydra
+       $(MAKE) -C packages/cba688842ac089ad516155d1b2d6d73826929449-hydra -f package-makefile.mk deploy
 clean:
        rm -rf packages
diff --git a/elpa/bin/extract-package.sh b/elpa/bin/extract-package.sh
new file mode 100755 (executable)
index 0000000..a8440df
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+function grab_external {
+    rm -rf packages/*$PACKAGE
+    mkdir packages/$SHA-$PACKAGE
+    cd elpa-git
+    git archive $SHA \
+        | tar xv -C ../packages/$SHA-$PACKAGE
+    cd ..
+    cp bin/package-makefile.mk packages/$SHA-$PACKAGE
+}
+
+SHA=
+PACKAGE=
+EXTERNAL=0
+
+while getopts "s:p:e" opt; do
+    case $opt in
+        s)
+            SHA=$OPTARG
+            ;;
+        p)
+            PACKAGE=$OPTARG
+            ;;
+        e)
+            EXTERNAL=1
+            ;;
+    esac
+done
+
+if (($EXTERNAL))
+then
+    grab_external
+    exit 0
+fi
+
+exit 1
diff --git a/elpa/bin/package-makefile.mk b/elpa/bin/package-makefile.mk
new file mode 100644 (file)
index 0000000..70bff68
--- /dev/null
@@ -0,0 +1,2 @@
+deploy:
+       echo hello `pwd`
diff --git a/elpa/package-makefile b/elpa/package-makefile
deleted file mode 100644 (file)
index be1a0c7..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-all:
-       echo hello world