Skip to content

Commit

Permalink
Merge pull request #6 from mozilla-services/features/cmd-folder
Browse files Browse the repository at this point in the history
All scripts in `scripts` folder, and adjust to the commands being in the...
  • Loading branch information
rafrombrc committed Apr 17, 2013
2 parents c322021 + 118722d commit 5608ea0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions Makefile
Expand Up @@ -77,14 +77,19 @@ src/github.com/mozilla-services/heka/README.md:
heka-source: src/github.com/mozilla-services/heka/README.md

bin/hekad: pluginloader heka-source $(GOBIN)
@GOPATH=$GOPATH python update_deps.py package_deps.txt
@GOPATH=$GOPATH python scripts/update_deps.py package_deps.txt
@perl -pi.bak -e "s,HEKABUILDPATH,$(BIN),g" $(SANDBOX)
@cd src && \
$(GOCMD) install -ldflags="-r ./" github.com/mozilla-services/heka/hekad
$(GOCMD) install -ldflags="-r ./" github.com/mozilla-services/heka/cmd/hekad
@mv $(SANDBOX).bak $(SANDBOX)

hekad: sandbox bin/hekad

bin/flood:
$(GOCMD) install github.com/mozilla-services/heka/cmd/flood

flood: bin/flood

src/github.com/mozilla-services/heka-mozsvc-plugins/README.md:
mkdir -p src/github.com/mozilla-services
cd src/github.com/mozilla-services && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_pluginloader.py
Expand Up @@ -33,7 +33,7 @@ def main():
sys.exit(1)

packages = pkgs_data.get(pkgs_key, [])
outfile_path = ("src/github.com/mozilla-services/heka/hekad/"
outfile_path = ("src/github.com/mozilla-services/heka/cmd/hekad/"
"plugin_loader.go")
if os.path.exists(outfile_path):
os.remove(outfile_path)
Expand Down
3 changes: 2 additions & 1 deletion update_deps.py → scripts/update_deps.py
Expand Up @@ -230,7 +230,8 @@ def main():
package_lines = [x.strip() for x in f.readlines() if x.strip()]

here_dir = os.path.dirname(os.path.abspath(__file__))
src_dir = os.path.join(here_dir, 'src')
parent_dir = os.path.dirname(here_dir)
src_dir = os.path.join(parent_dir, 'src')
packages = parse_package_file(package_lines, src_dir)

# Last sanity check to see that we have what we need
Expand Down

0 comments on commit 5608ea0

Please sign in to comment.