Added independant constant for data directory.

This commit is contained in:
Glenn Y. Rolland 2012-07-24 01:14:50 +02:00
parent 61075dfb79
commit bc24f8cebd
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,8 @@ install-bin:
for binfile in bin/*.rb ; do \ for binfile in bin/*.rb ; do \
BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \ BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \
install -D -o root -g root -m 755 $$binfile $(BINDIR)/$$BINFILE; \ 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 done
#install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui #install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui

View file

@ -9,7 +9,9 @@ require 'pp'
require 'set' require 'set'
require 'fcntl' require 'fcntl'
QASIM_INCLUDE_DIR = "." QASIM_INCLUDE_DIR = "lib"
QASIM_DATA_DIR = "."
$:.push QASIM_INCLUDE_DIR $:.push QASIM_INCLUDE_DIR
require 'qasim/constants' require 'qasim/constants'