Skip to content

Commit

Permalink
Simplified Octave API distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
oheim committed Nov 13, 2015
1 parent 16bd1c2 commit 0353c7a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ before_script:

script:
- make -C viewer/build
- make -C client-api/Octave
- if [ $TRAVIS_OS_NAME == linux ]; then make -C client-api/Octave install; fi

after_success:
Expand Down
1 change: 1 addition & 0 deletions client-api/Octave/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vibes-*.tar.gz
vibes-bundle/**
vibes-html/**
fntest.log
octave-*
Expand Down
20 changes: 10 additions & 10 deletions client-api/Octave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ dist: $(RELEASE_TARBALL)

$(RELEASE_TARBALL): ../../.git/index
@echo "Creating package release ..."
@# Export the current subdir of the source repository
@# This is only the Octave API
@git archive --output="$(PACKAGE)-$(VERSION).tar" --prefix="$(PACKAGE)-$(VERSION)/" HEAD
@# The C++ API must be bundled
@(cd ../C++/; git archive --output="$(shell pwd)/$(PACKAGE)-deps.tar" --prefix="$(PACKAGE)-$(VERSION)/" HEAD src)
@tar --concatenate --file="$(PACKAGE)-$(VERSION).tar" "$(PACKAGE)-deps.tar"
@$(GZIP) --best -f "$(PACKAGE)-$(VERSION).tar"
@rm -f "$(PACKAGE)-$(VERSION).tar" "$(PACKAGE)-deps.tar"
@rm -rf "$(PACKAGE)-bundle"
@mkdir -p "$(PACKAGE)-bundle"
@git archive --format=tar --prefix="$(PACKAGE)-$(VERSION)/" HEAD | \
(cd "$(PACKAGE)-bundle" && tar xf -)
@(cd ../C++/; git archive --format=tar --prefix="$(PACKAGE)-$(VERSION)/" HEAD src) | \
(cd "$(PACKAGE)-bundle" && tar xf -)
@(cd "$(PACKAGE)-bundle" && tar czf "../$@" "$(PACKAGE)-$(VERSION)")

##
## Local Install Process
Expand Down Expand Up @@ -116,10 +116,10 @@ run: $(INSTALLED_PACKAGE)

clean:
rm -rf \
"$(PACKAGE)-*.tar" \
"$(PACKAGE)-*.tar.gz" \
$(PACKAGE)-*.tar.gz \
"$(PACKAGE)-bundle" \
"$(HTML_DIR)" \
"$(HTML_TARBALL)" \
"fntests.log" \
"octave-*"
octave-*

0 comments on commit 0353c7a

Please sign in to comment.