Added independant constant for data directory.
This commit is contained in:
parent
61075dfb79
commit
bc24f8cebd
2 changed files with 5 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -44,7 +44,8 @@ install-bin:
|
|||
for binfile in bin/*.rb ; do \
|
||||
BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \
|
||||
install -D -o root -g root -m 755 $$binfile $(BINDIR)/$$BINFILE; \
|
||||
sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "/usr/share/$(NAME)"|' $(BINDIR)/$$BINFILE; \
|
||||
sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "/usr/share/$(NAME)/lib"|' $(BINDIR)/$$BINFILE; \
|
||||
sed -i -e 's|^QASIM_DATA_DIR.*|QASIM_DATA_DIR = "/usr/share/$(NAME)"|' $(BINDIR)/$$BINFILE; \
|
||||
done
|
||||
#install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui
|
||||
|
||||
|
|
|
@ -9,7 +9,9 @@ require 'pp'
|
|||
require 'set'
|
||||
require 'fcntl'
|
||||
|
||||
QASIM_INCLUDE_DIR = "."
|
||||
QASIM_INCLUDE_DIR = "lib"
|
||||
QASIM_DATA_DIR = "."
|
||||
|
||||
$:.push QASIM_INCLUDE_DIR
|
||||
|
||||
require 'qasim/constants'
|
||||
|
|
Loading…
Reference in a new issue