version 1.1, 2007/03/13 17:50:37
|
version 1.3, 2007/11/21 20:13:07
|
|
|
| |
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 |
| |
|
|
# Show the differences between the updated files and the versions that were | # Show the differences between the updated files and the versions that were |
# checked out from the CVS repository. | # checked out from the CVS repository. |
diff: | diff: |
@cvs diff $(UPDATEDFILES); cd .; |
@cvs diff -u $(UPDATEDFILES); cd .; |
| |
# Run chksrc against the added and updated files. | # Run chksrc against the added and updated files. |
chksrc: | chksrc: |
|
|
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 |
| |