Skip to content

Commit

Permalink
web/Makefile: Generate cgi script replacing make variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 11, 2015
1 parent 0385193 commit 334821a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ test_mx_util
test_mx_log
test_mx_mysql

/web/pages/mxq/mxq

*~

gmon.out
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ clean: CLEAN += mxqsub.1

build: web/pages/mxq/mxq

clean: CLEAN += web/pages/mxq/mxq

install:: web/pages/mxq/mxq
$(call quiet-install,0755,$^,${DESTDIR}${CGIDIR}/mxq)

Expand Down
2 changes: 1 addition & 1 deletion web/pages/mxq/mxq → web/pages/mxq/mxq.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ EOF

sub db_init {

$dbh= DBI->connect('DBI:mysql:mysql_read_default_file=/etc/mxq/mysql.cnf',undef,undef, { RaiseError => 1, AutoCommit => 1 });
$dbh= DBI->connect('DBI:mysql:mysql_read_default_file=@MXQ_MYSQL_DEFAULT_FILE@',undef,undef, { RaiseError => 1, AutoCommit => 1 });
# mxq_group.h
register_group_status(
OK => 0,
Expand Down

0 comments on commit 334821a

Please sign in to comment.