Skip to content

Commit

Permalink
Updated braindump-config and installation
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeishan committed Dec 19, 2014
1 parent 6a8201d commit fe9d08e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
build:
@echo "=== Creating symbolic links into ${HOME}/local/bin/braindump... ==="
rm -f ${HOME}/local/bin/braindump
rm -f ${HOME}/local/bin/braindump-configure
rm -rf ${HOME}/local/braindump
ln -s `pwd`/braindump.sh ${HOME}/local/bin/braindump
ln -s `pwd`/util/config-generator/generate.py ${HOME}/local/bin/braindump-configure
ln -s `pwd`/util ${HOME}/local/braindump

@echo "\n=== Verifying installation... ==="
@if [ -f "${HOME}/local/bin/braindump" ]; then \
echo "SUCCESS! BrainDump binary has been put into ${HOME}/local/bin."; \
echo "Util directory has been put into ${HOME}/local/braindump."; \
echo "SUCCESS! BrainDump binary has been put into ${HOME}/local/bin/braindump"; \
echo "Util directory has been put into ${HOME}/local/braindump/"; \
echo "Configure script has been put into ${HOME}/local/bin/braindump-configure"; \
else \
echo "FAILED: Cannot extract into ${HOME}/local/bin."; \
exit 1; \
Expand Down
4 changes: 2 additions & 2 deletions util/config-generator/generate.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys
Expand All @@ -18,7 +18,7 @@
help='the base directory of the DeepDive application')
@click.option('--dd_output_dir',
prompt='Specify DD_OUTPUT_DIR, the output folder of DeepDive',
default='"$WORKING_DIR/../../../out"',
default='"$WORKING_DIR/../../out"',
help='the output folder of DeepDive')
@click.option('--dbname',
prompt='Specify DBNAME, the name of your working database',
Expand Down

0 comments on commit fe9d08e

Please sign in to comment.