Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

scripts: Fix a bug about version #218

Merged
merged 3 commits into from
Aug 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .ci/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ processing="$HOME/processing"
core="$HOME/processing/core/library"
pde="$HOME/processing/lib/pde.jar"
version="travis-ci"
pretty="pretty-travis-ci"

# Call functions in utils/generator-util.sh
generate-build-config ${modes} ${executable} ${core} ${pde} ${version}
generate-build-config ${modes} ${executable} ${core} ${pde} ${version} ${pretty}
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This list is sorted by the number of commits per contributor in descending order
* [@jeremydouglass](https://github.com/jeremydouglass)
* [@hawkingrei](https://github.com/hawkingrei)

###### Auto generated by [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2017-07-18
###### Auto generated by [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2017-08-20
64 changes: 59 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# Change Log

## [Unreleased](https://github.com/gaocegege/Processing.R/tree/HEAD)

[Full Changelog](https://github.com/gaocegege/Processing.R/compare/v1.0.5...HEAD)

**Closed issues:**

- Cast more functions from double to int [\#184](https://github.com/gaocegege/Processing.R/issues/184)

## [v1.0.5](https://github.com/gaocegege/Processing.R/tree/v1.0.5) (2017-08-20)
[Full Changelog](https://github.com/gaocegege/Processing.R/compare/v1.0.4...v1.0.5)

**Closed issues:**

- frameRate variable named to match others [\#214](https://github.com/gaocegege/Processing.R/issues/214)
- docs--broken reference link [\#213](https://github.com/gaocegege/Processing.R/issues/213)
- Redirect all errors to PDE console [\#211](https://github.com/gaocegege/Processing.R/issues/211)
- Credits in Processing.R reference docs [\#206](https://github.com/gaocegege/Processing.R/issues/206)
- Conflict between mousePressed and mousPressed\(\) [\#194](https://github.com/gaocegege/Processing.R/issues/194)
- Implement complete print logic [\#174](https://github.com/gaocegege/Processing.R/issues/174)
- libraryImport video example: can't define movieEvent hook [\#166](https://github.com/gaocegege/Processing.R/issues/166)
- Support the event function [\#163](https://github.com/gaocegege/Processing.R/issues/163)
- example: Add example for focus. [\#160](https://github.com/gaocegege/Processing.R/issues/160)
- Support built-in variables [\#98](https://github.com/gaocegege/Processing.R/issues/98)
- Support Reading and Creating built-in functions [\#86](https://github.com/gaocegege/Processing.R/issues/86)
- Support Processing libraries [\#58](https://github.com/gaocegege/Processing.R/issues/58)

**Merged pull requests:**

- BuiltinApplet: Add pixelDensity [\#217](https://github.com/gaocegege/Processing.R/pull/217) ([gaocegege](https://github.com/gaocegege))
- Update frameRate [\#216](https://github.com/gaocegege/Processing.R/pull/216) ([gaocegege](https://github.com/gaocegege))
- SketchRunner: Redirect all errors to PDE console [\#212](https://github.com/gaocegege/Processing.R/pull/212) ([gaocegege](https://github.com/gaocegege))
- src: Refactor the logic about key [\#210](https://github.com/gaocegege/Processing.R/pull/210) ([gaocegege](https://github.com/gaocegege))
- Fix mousePressed and add examples [\#208](https://github.com/gaocegege/Processing.R/pull/208) ([gaocegege](https://github.com/gaocegege))
- lib: Update [\#207](https://github.com/gaocegege/Processing.R/pull/207) ([gaocegege](https://github.com/gaocegege))
- reference: Add the missing images [\#205](https://github.com/gaocegege/Processing.R/pull/205) ([gaocegege](https://github.com/gaocegege))
- reference: Add missing test.yml [\#204](https://github.com/gaocegege/Processing.R/pull/204) ([gaocegege](https://github.com/gaocegege))
- reference: Add Color [\#203](https://github.com/gaocegege/Processing.R/pull/203) ([gaocegege](https://github.com/gaocegege))
- reference: Add time [\#202](https://github.com/gaocegege/Processing.R/pull/202) ([gaocegege](https://github.com/gaocegege))
- reference: Update control [\#201](https://github.com/gaocegege/Processing.R/pull/201) ([gaocegege](https://github.com/gaocegege))
- core.R: Add all constants in Processing [\#200](https://github.com/gaocegege/Processing.R/pull/200) ([gaocegege](https://github.com/gaocegege))
- \*: Fix the name of the mode [\#198](https://github.com/gaocegege/Processing.R/pull/198) ([gaocegege](https://github.com/gaocegege))
- \*: Update the version [\#197](https://github.com/gaocegege/Processing.R/pull/197) ([gaocegege](https://github.com/gaocegege))
- \*: Add deploy script [\#196](https://github.com/gaocegege/Processing.R/pull/196) ([gaocegege](https://github.com/gaocegege))
- reference: Refactor docs about structure [\#195](https://github.com/gaocegege/Processing.R/pull/195) ([gaocegege](https://github.com/gaocegege))
- reference: Add all items in mouse [\#193](https://github.com/gaocegege/Processing.R/pull/193) ([gaocegege](https://github.com/gaocegege))
- Example: Add data [\#192](https://github.com/gaocegege/Processing.R/pull/192) ([gaocegege](https://github.com/gaocegege))
- core.R: Add colorMode specific constants [\#191](https://github.com/gaocegege/Processing.R/pull/191) ([gaocegege](https://github.com/gaocegege))
- demo: Fix the demo [\#190](https://github.com/gaocegege/Processing.R/pull/190) ([gaocegege](https://github.com/gaocegege))
- ignore: Ignore build.properties [\#189](https://github.com/gaocegege/Processing.R/pull/189) ([gaocegege](https://github.com/gaocegege))
- \*: Add version in PDE [\#188](https://github.com/gaocegege/Processing.R/pull/188) ([gaocegege](https://github.com/gaocegege))
- \*: Fix the callback function [\#187](https://github.com/gaocegege/Processing.R/pull/187) ([gaocegege](https://github.com/gaocegege))
- Examples/importLibrary: sound and DXF [\#183](https://github.com/gaocegege/Processing.R/pull/183) ([jeremydouglass](https://github.com/jeremydouglass))
- example: Add more cases [\#182](https://github.com/gaocegege/Processing.R/pull/182) ([gaocegege](https://github.com/gaocegege))
- build.xml: Remove useless dep [\#180](https://github.com/gaocegege/Processing.R/pull/180) ([gaocegege](https://github.com/gaocegege))
- \*: Support libraries in cli runner [\#179](https://github.com/gaocegege/Processing.R/pull/179) ([gaocegege](https://github.com/gaocegege))
- Refactor the documentation about docker [\#177](https://github.com/gaocegege/Processing.R/pull/177) ([gaocegege](https://github.com/gaocegege))

## [v1.0.4](https://github.com/gaocegege/Processing.R/tree/v1.0.4) (2017-07-18)
[Full Changelog](https://github.com/gaocegege/Processing.R/compare/v1.0.4-alpha...v1.0.4)

Expand Down Expand Up @@ -180,17 +237,14 @@
## [v0.0.2](https://github.com/gaocegege/Processing.R/tree/v0.0.2) (2016-09-08)
[Full Changelog](https://github.com/gaocegege/Processing.R/compare/v0.0.1...v0.0.2)

**Closed issues:**

- Mode: Active, Mix and Static [\#5](https://github.com/gaocegege/Processing.R/issues/5)

## [v0.0.1](https://github.com/gaocegege/Processing.R/tree/v0.0.1) (2016-09-06)
**Closed issues:**

- Demo [\#1](https://github.com/gaocegege/Processing.R/issues/1)
- Mode: Active, Mix and Static [\#5](https://github.com/gaocegege/Processing.R/issues/5)
- settings function [\#4](https://github.com/gaocegege/Processing.R/issues/4)
- setup function [\#3](https://github.com/gaocegege/Processing.R/issues/3)
- draw function [\#2](https://github.com/gaocegege/Processing.R/issues/2)
- Demo [\#1](https://github.com/gaocegege/Processing.R/issues/1)



Expand Down
3 changes: 2 additions & 1 deletion build.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<!-- Version of the mode -->
<property name="processing.r.version" value="@@version@@" />
<property name="processing.r.prettyversion" value="@@pretty@@" />

<!-- Folder -->
<property name="try" value="try" />
Expand Down Expand Up @@ -148,7 +149,7 @@
</copy>
<!-- TODO: Configure the version in bash script. -->
<replaceregexp file="${bundle}/mode.properties" flags="g" match="@@mode-version@@" replace="${processing.r.version}" />
<replaceregexp file="${bundle}/mode.properties" flags="g" match="@@pretty-version@@" replace="${processing.r.version}" />
<replaceregexp file="${bundle}/mode.properties" flags="g" match="@@pretty-version@@" replace="${processing.r.prettyversion}" />
</target>

<target name="install" depends="package">
Expand Down
4 changes: 2 additions & 2 deletions docs/RLangMode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authorList = [Processing.R Authors](https://github.com/gaocegege/Processing.R/bl
url = https://github.com/gaocegege/Processing.R
sentence = Processing in R Language
paragraph =
version = 104
prettyVersion = v1.0.4
version = 105
prettyVersion = v1.0.5
maxVersion = 0
minVersion = 260
Binary file modified docs/RLangMode.zip
Binary file not shown.
12 changes: 11 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ function deploy {
perl -i -pe "s|\@\@mode-version\@\@|${version}|g" docs/RLangMode.txt
perl -i -pe "s|\@\@pretty-version\@\@|${full_version}|g" docs/RLangMode.txt

scripts/generate-ant-file.sh
source "$(dirname "${BASH_SOURCE}")/utils/generator-util.sh"

# Path to be changed
modes="${HOME}/Documents/Processing/modes"
executable="/Applications/Processing.app/Contents/MacOS/Processing"
core="/Applications/Processing.app/Contents/Java/core/library"
pde="/Applications/Processing.app/Contents/Java/pde.jar"

# Call functions in utils/generator-util.sh
generate-build-config ${modes} ${executable} ${core} ${pde} ${version} ${full_version}

ant package
cd dist/
zip -r RLangMode.zip RLangMode/
Expand Down
5 changes: 3 additions & 2 deletions scripts/generate-ant-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ modes="${HOME}/Documents/Processing/modes"
executable="/Applications/Processing.app/Contents/MacOS/Processing"
core="/Applications/Processing.app/Contents/Java/core/library"
pde="/Applications/Processing.app/Contents/Java/pde.jar"
version="v1.0.4"
version="local"
pretty_version="pretty-local"

# Call functions in utils/generator-util.sh
generate-build-config ${modes} ${executable} ${core} ${pde} ${version}
generate-build-config ${modes} ${executable} ${core} ${pde} ${version} ${pretty_version}
3 changes: 2 additions & 1 deletion scripts/utils/generator-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function help {
}

function generate-build-config {
local numberOfParams=5
local numberOfParams=6
local root=$(dirname "${BASH_SOURCE}")/../..

if [[ $# -ne ${numberOfParams} ]]; then
Expand All @@ -34,6 +34,7 @@ function generate-build-config {
perl -i -pe "s|\@\@core\@\@|${3}|g" build.xml
perl -i -pe "s|\@\@pde\@\@|${4}|g" build.xml
perl -i -pe "s|\@\@version\@\@|${5}|g" build.xml
perl -i -pe "s|\@\@pretty\@\@|${6}|g" build.xml
perl -i -pe "s|\@\@commitid\@\@|${commitid}|g" build.xml
cd - > /dev/null
}