Source

shlomif-computer-settings / shlomif-settings / Bash / Themes / themes / fcs / source.bash

Full commit
shl...@iglu.org.… cf4c504 


Shlomi Fish 01a1eae 
shl...@iglu.org.… cf4c504 

Shlomi Fish b411d97 
shl...@iglu.org.… cf4c504 
Shlomi Fish 2848777 

shl...@iglu.org.… cf4c504 





Shlomi Fish 4d45438 

shl...@iglu.org.… cf4c504 


shl...@iglu.org.… 74884c1 
shl...@iglu.org.… cf4c504 
Shlomi Fish 4d45438 



shl...@iglu.org.… cf4c504 


Shlomi Fish 2848777 











shl...@iglu.org.… cf4c504 
Shlomi Fish 995b90f 
shl...@iglu.org.… cf4c504 









shl...@iglu.org.… 74884c1 
shl...@iglu.org.… cf4c504 











Shlomi Fish 850a7c1 








Shlomi Fish 4d45438 








shl...@iglu.org.… cf4c504 
load_common mymake
load_common completion
load_common prompt
load_common no_implicit_make

fcs="$HOME/progs/freecell"
base="$fcs"
branches="$fcs/branches"
_base_trunk="$fcs/git"
trunk="$_base_trunk/fc-solve"
t_fcs="$trunk/fc-solve"
c_src="$t_fcs/source"
site="$t_fcs/site/wml"
blog="$t_fcs/site/blog"
presets="$t_fcs/presets/soft-threads/meta-moves/auto-gen"
atomic_presets="$t_fcs/presets/soft-threads/atomic-moves/auto-gen"
cpan="$trunk/cpan"
verify="$cpan/Games-Solitaire-Verify/Games-Solitaire-Verify"
bench="$t_fcs/benchmarks"
test_dir="$branches/trunk/testing/source"
dd_branch="$branches/depth-dependent-moves-order/source"
parallel="$t_fcs/scripts/parallel-solve-and-verify-for-bakers-game"

ai_path="$cpan/AI-Pathfinding-OptimizeMultiple"
ai_path_sys_tests="$cpan/temp-AI-Pathfinding-OptimizeMultiple-system-tests"


this="$c_src"
# this="$dd_branch"

setup()
{
    (
        mkdir -p "$_base_trunk"
        cd "$_base_trunk"
        git clone 'ssh://git@bitbucket.org/shlomif/fc-solve.git' "$trunk"
        cd "$trunk"
        git remote add github 'git@github.com:shlomif/fc-solve.git'
    )
    cd "$this"
}

export LIBAVL2_SOURCE_DIR="$HOME/Download/unpack/prog/c/avl-2.0.3/"
export FCS_USE_TEST_RUN=1

# This causes problems with the threaded solver.
unset MALLOC_CHECK_

cd $this

prompt()
{
    __prompt_cmd \
        "\$verify=$verify" \
        "\$parallel=$parallel" \
        "\$presets=$presets" \
        "\$atomic_presets=$atomic_presets" \
        "\$trunk=$trunk" \
        "\$fcs=$fcs" \
        "~=$HOME"
}

t()
{
    (cd "$c_src" && perl run-tests.pl)
}

make()
{
    if [ "$*" = "pgo" ]; then
        `which make` VERBOSE=1 "$@"
    else
        `which make` "$@"
    fi
}

_dzil_inst()
{
    (
        cd "$ai_path" && \
            dzil test --release && \
            dzil install --install-command='bash ~/conf/build/perl/install-to-apps-perl-modules.sh'
    )
}

PS1="\\u[fcs]:\$(prompt)\\$ "