⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 26c3f0ab9210026fd9a9398a658ef97a9cb9519f4b050b6e07b528f3524b77da:

  • Executable file wheel.sh — part of check-in [4cb0fff742] at 2022-03-27 22:44:18 on branch trunk — Updating JUCE link and build scripts (user: dev size: 1371)

#!fish

set DEV "1"

function build
    rm source/main.md
    rm source/what.md
    for f in source/*.cog
        set rootname (echo $f | sed 's/\.[^.]*$//')
        safe-rm $rootname.md
        ./env/bin/cog --markers="@< @> @@" -D DEV=$DEV -d $f >  $rootname.md
    end
   rm -rf build
   make html
end

function final
    set DEV "0"
    build
end

function pack
    rm bitrhythm.tgz
    set array   --exclude "*.pyc" \
            --exclude "*.tgz" \
            --exclude "_sources" \
            --exclude "searchindex.js" \
            --exclude "public/closed" \
            --exclude "presentation" \
            --exclude ".DS_Store" \
            --exclude "*.inv" \
            --exclude "*.tcl" \
            --exclude "draft" \
            --exclude "doctrees" \
            --exclude "__pycache__" \
            --exclude "*env*" \
            --exclude "tags.*" \
            --exclude "tags" \
            --exclude "__init__.py" \
            --exclude ".fossil-settings" \
            --exclude ".fslckout" \
            --exclude ".git"

    gtar -czv $array -f bitrhythm.tgz .
end


switch $argv[1]
        case "--build"
            build
        case "--prod"
            final
        case "--dev"
            build
            hy bitrhythm.hy &
            set PID %1
            echo $PID > ./pidfile
        case "--zip"
            pack
end