This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A hook script to prepare the commit log message if the branch name starts with a JIRA ticket. | |
# It adds the branch name to the commit message, if it is not already part of it. | |
# https://stackoverflow.com/questions/5894946/how-to-add-gits-branch-name-to-the-commit-message/59831864#59831864 | |
PROJECT_PREFIX="PROJ" # TODO fill in project here | |
BRANCH_PATH=$(git symbolic-ref -q HEAD) # Something like refs/heads/branch_name | |
BRANCH_NAME=${BRANCH_PATH##*/} # Get text behind the last / of the branch path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Target and build configuration. | |
TARGET=arm-none-eabi | |
PREFIX=/opt/arm-none-eabi-4.7.1 | |
# Sources to build from. | |
BINUTILS=binutils-2.23.1 | |
GCC=gcc-4.7.1 | |
NEWLIB=newlib-1.20.0 |