version 1.1, 2007/03/13 17:50:37
|
version 1.2, 2007/07/25 19:36:06
|
|
|
| |
TODAY = $(shell date +"%m%d%y") | TODAY = $(shell date +"%m%d%y") |
| |
FORCE: |
ifeq ($(findstring LINUX_, $(PEGASUS_PLATFORM)), LINUX_) |
|
ECHO-E = echo -e |
|
else |
|
ECHO-E = echo |
|
endif |
| |
error: | error: |
@echo "Please specify a target (e.g., diff, add, remove, or commit)" |
@$(ECHO-E) "Please specify a target (e.g., diff, add, remove, or commit)" |
|
|
|
FORCE: |
| |
# Log in to CVS using the specified user account. | # Log in to CVS using the specified user account. |
login: | login: |
|
|
| |
# Preview the commit message. | # Preview the commit message. |
displayMessage: | displayMessage: |
@echo $(MESSAGE) > tempCommitMessage |
@$(ECHO-E) $(MESSAGE) > tempCommitMessage |
@cat tempCommitMessage | @cat tempCommitMessage |
@rm -f tempCommitMessage | @rm -f tempCommitMessage |
| |
|
|
endif | endif |
endif | endif |
ifndef NO_CHKSRC | ifndef NO_CHKSRC |
@echo "Running chksrc to detect source code formatting errors." |
@$(ECHO-E) "Running chksrc to detect source code formatting errors." |
@echo "Include NO_CHKSRC=1 on the command line to bypass this check." |
@$(ECHO-E) "Include NO_CHKSRC=1 on the command line to bypass this check." |
chksrc $(ADDEDFILES) $(UPDATEDFILES) | chksrc $(ADDEDFILES) $(UPDATEDFILES) |
endif | endif |
| |
|
|
# files. | # files. |
commit: chksrc | commit: chksrc |
rm -f tempCommitMessage | rm -f tempCommitMessage |
echo $(MESSAGE) > tempCommitMessage |
$(ECHO-E) $(MESSAGE) > tempCommitMessage |
cvs $(CVSUSER) commit $(PEGASUS_CVS_REVISION_OPTION) -F tempCommitMessage $(ADDEDFILES) $(UPDATEDFILES) $(REMOVEDFILES) >> commitout | cvs $(CVSUSER) commit $(PEGASUS_CVS_REVISION_OPTION) -F tempCommitMessage $(ADDEDFILES) $(UPDATEDFILES) $(REMOVEDFILES) >> commitout |
rm -f tempCommitMessage | rm -f tempCommitMessage |
| |