Fold a few lines of identical code
[sbcl.git] / contrib / asdf / pull-asdf.sh
blob0c7cd72c5720ecd3b1d5389a24e3f20dc77cda0b
1 #!/bin/sh -e
3 # Get the current ASDF release from the upstream repo.
5 if test -d asdf-upstream
6 then
7 if test -d ../../obj/asdf-upstream
8 then
9 rm -rf asdf-upstream
10 else
11 mv asdf-upstream ../../obj/asdf-upstream
15 if test -d ../../obj/asdf-upstream
16 then
17 (cd ../../obj/asdf-upstream/
18 git checkout release
19 git reset --hard release
20 git pull -a origin release)
21 else
22 (cd ../../obj/
23 git clone --branch release git://common-lisp.net/projects/asdf/asdf.git asdf-upstream)
26 ( echo -n ";;; This is UIOP " ; eval echo $(cat ../../obj/asdf-upstream/version.lisp-expr) ;
27 cd ../../obj/asdf-upstream && cat $(make --quiet driver-files) ;
28 echo '(provide "UIOP")' ; echo '(provide "uiop")' ) > uiop.lisp
29 ( echo -n ";;; This is ASDF " ; eval echo $(cat ../../obj/asdf-upstream/version.lisp-expr) ;
30 echo '(eval-when (:compile-toplevel :load-toplevel :execute) (require :uiop))' ;
31 cd ../../obj/asdf-upstream && cat $(make --quiet defsystem-files) ) > asdf.lisp