~oubiwann/pylisp-ng/ast-lisp

« back to all changes in this revision

Viewing changes to admin/defs.sh

  • Committer: Duncan McGreggor
  • Date: 2008-11-11 17:09:09 UTC
  • Revision ID: duncan@canonical.com-20081111170909-5bjw2pugjsaybhj1
* Added cust dist util subpackage.
* Cleaned up admin scripts.
* Added initial content to setup.py.
* Added initial content to README.
* Added README to the test runner.
* Updated TODO.
* Added a bin script for running a lisp interpreter.
* Split PRELUDE and HISTORY out of README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
LIB=pylistng
2
2
BZR='lp:~oubiwann/pylisp-ng/trunk'
3
3
NAME=pyLisp-NG
4
 
EGG_NAME=$NAME
 
4
EGG_NAME=pyList_NG
5
5
FLAG='skip_tests'
6
6
MSG=commit-msg
7
7
export PYTHONPATH=.:./test:$PYTHONPATH
19
19
}
20
20
 
21
21
function error {
22
 
    echo "There was an error committing/pushing; temp files preserved."
 
22
    MSG=$1
 
23
    echo $MSG
 
24
    echo '(Temp files preserved.)'
23
25
    abort
24
26
}
25
27
 
 
28
function checkBuild {
 
29
    # this script is used to automatically check the build and make sure nothing
 
30
    # in the build process was broken before a checkin.
 
31
    echo
 
32
    echo "Checking build process ..."
 
33
    echo
 
34
    python setup.py build
 
35
}
 
36
 
26
37
function cleanup {
27
38
    echo "Cleaning up temporary files ..."
28
 
    rm -rf $MSG _trial_temp test.out .DS_Store CHECK_THIS_BEFORE_UPLOAD.txt
 
39
    find . -name "*pyc" -exec rm {} \;
 
40
    rm -rf $MSG \
 
41
        build \
 
42
        dist \
 
43
        _trial_temp \
 
44
        test.out \
 
45
        .DS_Store \
 
46
        CHECK_THIS_BEFORE_UPLOAD.txt \
 
47
        $EGG_NAME.egg-info
29
48
    echo "Done."
30
49
}
31
50
 
44
63
    cleanup
45
64
}
46
65
 
47
 
function buildSucceed {
48
 
    echo "Build succeeded."
49
 
    echo "Cleaning up files ..."
50
 
    ./admin/clean.sh
51
 
    echo "Done."
52
 
    echo
 
66
function pushGoogleCode {
 
67
    echo "Pushing to Subversion (Google) now ..."
 
68
    bzr push $SVN && pushSucceed
53
69
}