Skip to content

Commit

Permalink
Fix bug in project target resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerGee committed Aug 11, 2016
1 parent 148af42 commit 6d7f5d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEBIAN/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: compile
Version: 2.2.0
Version: 2.2.1
Maintainer: Roger Gee <[email protected]>
Description: A tool to simplify compiler invocation
Architecture: amd64
Expand Down
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Version Changelog -
2.1.2 - fixes to previous revision
2.1.3 - properly handle change log
2.2.0 - add output redirection feature
2.2.1
- fix bug with project target resolution
------------------------------------------------------------------------------------------------
Building the project from source (Linux/OS X) -

Expand Down
2 changes: 1 addition & 1 deletion compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const char* PROGRAM_NAME;
const unsigned short PROGRAM_MAJOR_VERSION = 2;
const unsigned short PROGRAM_MINOR_VERSION = 2;
const unsigned short PROGRAM_REVISION_VERSION = 0;
const unsigned short PROGRAM_REVISION_VERSION = 1;

static void option_help();
static void option_version();
Expand Down
11 changes: 7 additions & 4 deletions compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,13 @@ void process_option(session* psession,stringbuf* dest,char* option)
}

/* Replace '$project' with first target name. */
if (strncmp(p,"project",j) == 0)
concat_stringbuf_ex(dest,psession->project.buffer,j);
else
fprintf(stderr,"%s: warning: the special option '%s' is not recognized\n",PROGRAM_NAME,p);
if (strncmp(p,"project",j) == 0) {
concat_stringbuf(dest,psession->project.buffer);
}
else {
fprintf(stderr,"%s: warning: the special option '%s' is not recognized\n",
PROGRAM_NAME,p);
}

i = j;
}
Expand Down

0 comments on commit 6d7f5d6

Please sign in to comment.