-
Notifications
You must be signed in to change notification settings - Fork 312
/
pull-asdf.sh
executable file
·31 lines (27 loc) · 1008 Bytes
/
pull-asdf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -e
# Get the current ASDF release from the upstream repo.
if test -d asdf-upstream
then
if test -d ../../obj/asdf-upstream
then
rm -rf asdf-upstream
else
mv asdf-upstream ../../obj/asdf-upstream
fi
fi
if test -d ../../obj/asdf-upstream
then
(cd ../../obj/asdf-upstream/
git checkout release
git reset --hard release
git pull -a origin release)
else
(cd ../../obj/
git clone --branch release https://gitlab.common-lisp.net/asdf/asdf.git asdf-upstream)
fi
( echo -n ";;; This is UIOP " ; eval echo $(cat ../../obj/asdf-upstream/version.lisp-expr) ;
cd ../../obj/asdf-upstream && cat $(make --quiet driver-files) ;
echo '(provide "UIOP")' ; echo '(provide "uiop")' ) > uiop.lisp
( echo -n ";;; This is ASDF " ; eval echo $(cat ../../obj/asdf-upstream/version.lisp-expr) ;
echo '(eval-when (:compile-toplevel :load-toplevel :execute) (require :uiop))' ;
cd ../../obj/asdf-upstream && cat $(make --quiet defsystem-files) ) > asdf.lisp