Permalink
Browse files

Better packaging

  • Loading branch information...
1 parent adc820a commit c8661033e4a704e64a17b1353c8b3fe513e2bd41 @bbyars committed May 29, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 Makefile
View
@@ -20,7 +20,7 @@ stop:
server/bin/httpmock stop --pidfile $(PIDFILE)
java: start
- url=http://localhost:$(PORT) ant -Dversion=$(VERSION) -Dreports.dir=$(REPORTS_DIR)/java -Dpackage.dir=$(PACKAGE_DIR)/java -f clients/java/build.xml
+ url=http://localhost:$(PORT) ant -Dversion=$(VERSION) -Dreports.dir=$(REPORTS_DIR)/java -Dpackage.dir=$(PACKAGE_DIR) -f clients/java/build.xml
test: unit_test functional_test
@@ -35,12 +35,13 @@ lint:
package:
mkdir -p $(PACKAGE_DIR)
- cp -R server $(PACKAGE_DIR)
- cat $(PACKAGE_DIR)/server/package.json.template | sed 's/{VERSION}/$(VERSION)/' > $(PACKAGE_DIR)/server/package.json
- rm $(PACKAGE_DIR)/server/package.json.template
- -rm -rf $(PACKAGE_DIR)/server/tags
- -rm $(PACKAGE_DIR)/server/*.pid
- -rm $(PACKAGE_DIR)/server/nodemon-ignore
+ cp -R server $(PACKAGE_DIR)/httpmock
+ cat $(PACKAGE_DIR)/httpmock/package.json.template | sed 's/{VERSION}/$(VERSION)/' > $(PACKAGE_DIR)/httpmock/package.json
+ rm $(PACKAGE_DIR)/httpmock/package.json.template
+ -rm -rf $(PACKAGE_DIR)/httpmock/tags
+ -rm $(PACKAGE_DIR)/httpmock/*.pid
+ -rm $(PACKAGE_DIR)/httpmock/nodemon-ignore
+ cd $(PACKAGE_DIR) && tar czf httpmock.tar.gz httpmock && rm -rf httpmock
publish: default
npm publish $(PACKAGE_DIR)/server/

0 comments on commit c866103

Please sign in to comment.