Ticket #1444: chicken-svn-bug.sh

File chicken-svn-bug.sh, 1.4 KB (added by jrobbins, 4 years ago)
Line 
1CHICKEN_PLATFORM="${CHICKEN_PLATFORM:-linux}"
2TEMPDIR=`pwd`/ckn-bug-tmp
3
4rm -rf $TEMPDIR
5mkdir -p $TEMPDIR
6cd $TEMPDIR
7
8echo "DOWNLOADING..."
9wget https://code.call-cc.org/releases/4.13.0/chicken-4.13.0.tar.gz
10
11echo "SETTING UP SVN..."
12if [ -n "$GIT" ]
13then
14    git init svn-repo
15    cd svn-repo
16    git config receive.denyCurrentBranch ignore
17    cd ..
18    git clone file://`pwd`/svn-repo svn-trunk
19    cd svn-trunk
20    git branch master
21    tar xzf ../chicken-4.13.0.tar.gz
22    git add --all
23    git commit -m "Test commit."
24    git push
25    rm -rf chicken-4.13.0
26    git reset --hard
27    cd ..
28else
29    svnadmin create svn-repo
30    svn co file://`pwd`/svn-repo/ svn-trunk
31    cd svn-trunk
32    tar xzf ../chicken-4.13.0.tar.gz
33    svn add chicken-4.13.0
34    svn commit -m "Test commit."
35    rm -rf chicken-4.13.0
36    svn up chicken-4.13.0
37    cd ..
38fi
39
40echo "SETTING UP TARBALL..."
41tar xzf chicken-4.13.0.tar.gz
42
43echo "DIFFERENCES:"
44diff -rq chicken-4.13.0 svn-trunk/chicken-4.13.0
45
46echo "RUNNING SVN..."
47cd svn-trunk/chicken-4.13.0
48make PLATFORM=$CHICKEN_PLATFORM PREFIX=inst &> $TEMPDIR/log-svn.txt
49echo "DONE. EXIT STATUS: $?"
50cd ../..
51
52echo "RUNNING TARBALL..."
53cd chicken-4.13.0
54make PLATFORM=$CHICKEN_PLATFORM PREFIX=inst &> $TEMPDIR/log-tarball.txt
55echo "DONE. EXIT STATUS: $?"
56cd ..
57
58echo "ALL DONE. See ckn-bug-tmp/log-tarball.txt and ckn-bug-tmp/log-svn.txt for details."