[25c176]: contrib / asdf / pull-asdf.sh Maximize Restore History

Download this file

pull-asdf.sh    27 lines (22 with data), 559 Bytes

 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
#!/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 git://common-lisp.net/projects/asdf/asdf.git asdf-upstream)
fi
cd ../../obj/asdf-upstream && make