Skip to content
Snippets Groups Projects
Select Git revision
  • a397a4a059a30cf6f5d2bcac7985660a1e7ac1d4
  • main default protected
  • rahix/big-flow3r
  • fpletz/flake
  • sampler_fix
  • pippin/media_framework
  • release/1.2.0
  • release/1.1.1
  • release/1.1.0
  • sec/auto-nick
  • rahix/flow3rseeds
  • compressor
  • sec/blinky
  • pippin/uhm_flash_access_bust
  • release/1.0.0
  • fm_fix2
  • fm_fix
  • pippin/make_empty_drawlists_skip_render_and_blit
  • pressable_bugfix
  • moon2_gay_drums
  • moon2_applications
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
33 results

badgelink.pyi

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    py-version.sh 745 B
    #!/bin/bash
    
    # Note: git describe doesn't work if no tag is available
    git_tag="$(git describe --dirty 2> /dev/null || git rev-parse --short HEAD)"
    git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
    git_files_are_clean=1
    # Check if there are any modified files.
    git diff --no-ext-diff --quiet --exit-code 2> /dev/null || git_files_are_clean=0
    # Check if there are any staged files.
    git diff-index --cached --quiet HEAD -- 2> /dev/null || git_files_are_clean=0
    if [ "${git_files_are_clean}" != "1" ]; then
        git_hash="${git_hash}-dirty"
    fi
    cat <<EOF
    // This file was generated by py/py-version.sh
    #define MICROPY_GIT_TAG "${git_tag}"
    #define MICROPY_GIT_HASH "${git_hash}"
    #define MICROPY_BUILD_DATE "$(date '+%Y-%m-%d')"
    EOF