bin/release.sh
79616338
 #! /bin/sh
 
 PROJECT="MulleConcurrent"    # requires camel-case
ea015822
 DESC="Lock- and Wait-free Hashtable (and an Array too) in C"
4e6aee39
 DEPENDENCIES='${DEPENDENCY_TAP}/mulle-allocator
 ${DEPENDENCY_TAP}/mulle-aba
 ${DEPENDENCY_TAP}/mulle-thread'  # no camel case, will be evaled later!
79616338
 LANGUAGE=c               # c,cpp, objc
 
4148b82d
 #
 # Ideally you don't hafta change anything below this line
 #
79616338
 # source mulle-homebrew.sh (clumsily)
e4e96105
 MULLE_BOOTSTRAP_FAIL_PREFIX="release.sh"
79616338
 
4148b82d
 . ./bin/repository-info.sh || exit 1
 . ./bin/mulle-homebrew/mulle-homebrew.sh || exit 1
79616338
 
 # parse options
 homebrew_parse_options "$@"
 
 # dial past options
 while [ $# -ne 0 ]
 do
    case "$1" in
       -*)
          shift
       ;;
       *)
          break;
       ;;
    esac
 done
 
e4e96105
 
79616338
 #
 # these can usually be deduced, if you follow the conventions
 #
 NAME="`get_name_from_project "${PROJECT}" "${LANGUAGE}"`"
 HEADER="`get_header_from_name "${NAME}"`"
 VERSIONNAME="`get_versionname_from_project "${PROJECT}"`"
 VERSION="`get_header_version "${HEADER}" "${VERSIONNAME}"`"
 
e4e96105
 HOMEPAGE="`eval echo "${HOMEPAGE}"`"
79616338
 
 
 # --- HOMEBREW TAP ---
 # Specify to where and under what bame to publish via your brew tap
 #
 RBFILE="${NAME}.rb"                    # ruby file for brew
 HOMEBREWTAP="../homebrew-software"     # your tap repository path
 
 
 # --- GIT ---
 # tag to tag your release
 # and the origin where
 TAG="${1:-${TAGPREFIX}${VERSION}}"
 
 
 main()
 {
    git_main "${ORIGIN}" "${TAG}" || exit 1
    homebrew_main
 }
 
 main "$@"