Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Oct 16, 2017
2 parents 5c5077e + 9e50cff commit 6c4de6b
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
build
# generated
stable/version.pony
2 changes: 1 addition & 1 deletion .travis_script.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pony-stable-build-packages(){
PACKAGE_ITERATION="${TRAVIS_BUILD_NUMBER}.$(git rev-parse --short --verify 'HEAD^{commit}')"

echo "Building ponyc packages for deployment..."
make package_name="pony-stable" package_base_version="$(cat VERSION)" package_iteration="${PACKAGE_ITERATION}" deploy
make arch=x86-64 package_name="pony-stable" package_base_version="$(cat VERSION)" package_iteration="${PACKAGE_ITERATION}" deploy
}

if [[ "$TRAVIS_BRANCH" == "release" && "$TRAVIS_PULL_REQUEST" == "false" ]]
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to the Pony compiler and standard library will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com/).

## [0.1.1] - 2017-10-16

### Fixed

- Fix possible illegal instruction core dump when using prebuilt ponyc binaries ([PR #45](https://github.com/ponylang/pony-stable/pull/45))

### Added

- Add `version` command line option ([PR #44](https://github.com/ponylang/pony-stable/pull/44))

## [0.1.0] - 2017-09-17

### Fixed
Expand Down
27 changes: 19 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
prefix ?= /usr/local
destdir ?= ${prefix}
config ?= release
arch ?=

BUILD_DIR ?= build/$(config)
SRC_DIR ?= stable
Expand All @@ -18,10 +19,26 @@ else
PONYC = ponyc --debug
endif

ifneq ($(arch),)
arch_arg := --cpu $(arch)
endif

ifneq ($(wildcard .git),)
tag := $(shell cat VERSION)-$(shell git rev-parse --short HEAD)
else
tag := $(shell cat VERSION)
endif

SOURCE_FILES := $(shell find $(SRC_DIR) -name \*.pony)
VERSION := "$(tag) [$(config)]"
GEN_FILES_IN := $(shell find $(SRC_DIR) -name \*.pony.in)
GEN_FILES = $(patsubst %.pony.in, %.pony, $(GEN_FILES_IN))

$(binary): $(SOURCE_FILES) | $(BUILD_DIR)
${PONYC} $(SRC_DIR) -o ${BUILD_DIR}
%.pony: %.pony.in
sed s/%%VERSION%%/$(VERSION)/ $< > $@

$(binary): $(GEN_FILES) $(SOURCE_FILES) | $(BUILD_DIR)
${PONYC} $(arch_arg) $(SRC_DIR) -o ${BUILD_DIR}

install: $(binary)
mkdir -p $(prefix)/bin
Expand All @@ -37,12 +54,6 @@ all: $(binary)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)

ifneq ($(wildcard .git),)
tag := $(shell cat VERSION)-$(shell git rev-parse --short HEAD)
else
tag := $(shell cat VERSION)
endif

# package_name, _version, and _iteration can be overridden by Travis or AppVeyor
package_base_version ?= $(tag)
package_iteration ?= "1"
Expand Down
49 changes: 46 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,54 @@ Put them in a stable and make your life easier.

<a href="https://openclipart.org/detail/11509/rpg-map-symbols-stables"><img src="https://openclipart.org/download/11509/nicubunu-RPG-map-symbols-Stables.svg" width="400px" /></a>

## Get stable.
## Installation

### Apt-get

```bash
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "D401AB61 DBE1D0A2"
echo "deb https://dl.bintray.com/pony-language/pony-stable-debian /" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -V install pony-stable
```

### macOS

```bash
brew install pony-stable
```

### RPM

DNF:

```bash
wget https://bintray.com/pony-language/pony-stable-rpm/rpm -O bintray-pony-language-pony-stable-rpm.repo
sudo mv bintray-pony-language-pony-stable-rpm.repo /etc/yum.repos.d/
sudo dnf --refresh install pony-stable
```

Yum:

```bash
wget https://bintray.com/pony-language/pony-stable-rpm/rpm -O bintray-pony-language-pony-stable-rpm.repo
sudo mv bintray-pony-language-pony-stable-rpm.repo /etc/yum.repos.d/
sudo yum install pony-stable
```

Zypper:

```bash
wget https://bintray.com/pony-language/pony-stable-rpm/rpm -O bintray-pony-language-pony-stable-rpm.repo
sudo mv bintray-pony-language-pony-stable-rpm.repo /etc/zypp/repos.d/
sudo zypper install pony-stable
```

### From Source

You will need `ponyc` in your PATH.

### For Unix:
#### From Source (Unix):

```bash
git clone https://github.com/ponylang/pony-stable
Expand All @@ -21,7 +64,7 @@ make
sudo make install
```

### For Windows:
#### From Source (Windows):

```batchfile
git clone https://github.com/ponylang/pony-stable
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
10 changes: 10 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ if errorlevel 1 goto noponyc
:build
if not exist "%BUILDDIR%" mkdir "%BUILDDIR%""
echo Compiling: ponyc stable -o %BUILDDIR% %DEBUG%
set /p VERSION=<VERSION
if exist ".git" for /f %%i in ('git rev-parse --short HEAD') do set "VERSION=%VERSION%-%%i [%CONFIG%]"
if not exist ".git" set "VERSION=%VERSION% [%CONFIG%]"
setlocal enableextensions disabledelayedexpansion
for /f "delims=" %%i in ('type stable\version.pony.in ^& break ^> stable\version.pony') do (
set "line=%%i"
setlocal enabledelayedexpansion
>>stable\version.pony echo(!line:%%%%VERSION%%%%=%VERSION%!
endlocal
)
ponyc stable -o %BUILDDIR% %DEBUG%
goto done

Expand Down
18 changes: 11 additions & 7 deletions stable/main.pony
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ actor Main
" Invoke in a working directory containing a bundle.json."
""
"Commands:"
" help - Print this message"
" fetch - Fetch/update the deps for this bundle"
" env - Execute the following shell command inside an environment"
" with PONYPATH set to include deps directories. For example,"
" `stable env ponyc myproject`"
" add - Add a new dependency. For exemple,"
" `stable add github jemc/pony-inspect"
" help - Print this message"
" version - Print version information"
" fetch - Fetch/update the deps for this bundle"
" env - Execute the following shell command inside an environment"
" with PONYPATH set to include deps directories. For example,"
" `stable env ponyc myproject`"
" add - Add a new dependency. For exemple,"
" `stable add github jemc/pony-inspect"
""
]
end)
Expand Down Expand Up @@ -93,5 +94,8 @@ actor Main
bundle.fetch()
end

fun command("version", rest: Array[String] box) =>
env.out.print(Version())

fun command(s: String, rest: Array[String] box) =>
_print_usage()
3 changes: 3 additions & 0 deletions stable/version.pony.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
primitive Version
fun apply() : String =>
"%%VERSION%%"

0 comments on commit 6c4de6b

Please sign in to comment.