| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: developer.mk,v 1.19 2011/09/15 21:45:52 wiz Exp $ | | 1 | # $NetBSD: developer.mk,v 1.20 2013/04/12 13:53:57 joerg Exp $ |
2 | # | | 2 | # |
3 | # Public targets for developers: | | 3 | # Public targets for developers: |
4 | # | | 4 | # |
5 | # changes-entry-noupdate: | | 5 | # changes-entry-noupdate: |
6 | # Appends a correctly-formatted entry to the pkgsrc CHANGES file, | | 6 | # Appends a correctly-formatted entry to the pkgsrc CHANGES file, |
7 | # and removes any TODO entries that were completed with this | | 7 | # and removes any TODO entries that were completed with this |
8 | # update from the TODO file. | | 8 | # update from the TODO file. |
9 | # The CHANGES and TODO files are presumed to be up to date and writable. | | 9 | # The CHANGES and TODO files are presumed to be up to date and writable. |
10 | # Note that the first assumption is often wrong and that the | | 10 | # Note that the first assumption is often wrong and that the |
11 | # second is wrong for those that set CVSREAD. | | 11 | # second is wrong for those that set CVSREAD. |
12 | # | | 12 | # |
13 | # Command-line variables: | | 13 | # Command-line variables: |
14 | # | | 14 | # |
| @@ -107,27 +107,27 @@ _CE_MSG= ${_CE_MSG1} ${_CE_MSG2} | | | @@ -107,27 +107,27 @@ _CE_MSG= ${_CE_MSG1} ${_CE_MSG2} |
107 | | | 107 | |
108 | # Targets for the update, add, commit elementary operations. | | 108 | # Targets for the update, add, commit elementary operations. |
109 | changes-entry-update: .PHONY ce-error-check | | 109 | changes-entry-update: .PHONY ce-error-check |
110 | @${STEP_MSG} "Updating ${PKGSRC_CHANGES:T} and ${PKGSRC_TODO:T}" | | 110 | @${STEP_MSG} "Updating ${PKGSRC_CHANGES:T} and ${PKGSRC_TODO:T}" |
111 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && cvs ${_NB_CVSROOT} update ${PKGSRC_CHANGES:T} ${PKGSRC_TODO:T} | | 111 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && cvs ${_NB_CVSROOT} update ${PKGSRC_CHANGES:T} ${PKGSRC_TODO:T} |
112 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && test -w ${PKGSRC_CHANGES:T} || cvs ${_NB_CVSROOT} edit ${PKGSRC_CHANGES:T} | | 112 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && test -w ${PKGSRC_CHANGES:T} || cvs ${_NB_CVSROOT} edit ${PKGSRC_CHANGES:T} |
113 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && test -w ${PKGSRC_TODO:T} || cvs ${_NB_CVSROOT} edit ${PKGSRC_TODO:T} | | 113 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && test -w ${PKGSRC_TODO:T} || cvs ${_NB_CVSROOT} edit ${PKGSRC_TODO:T} |
114 | | | 114 | |
115 | changes-entry-add: .PHONY ce-error-check | | 115 | changes-entry-add: .PHONY ce-error-check |
116 | @${STEP_MSG} "Adding the change" | | 116 | @${STEP_MSG} "Adding the change" |
117 | ${RUN} ${ECHO} " "${_CE_MSG:Q} >> ${PKGSRC_CHANGES} | | 117 | ${RUN} ${ECHO} " "${_CE_MSG:Q} >> ${PKGSRC_CHANGES} |
118 | | | 118 | |
119 | todo-entry-remove: | | 119 | todo-entry-remove: |
120 | ${RUN} ${SH} ${PKGSRCDIR}/mk/scripts/remove_todo ${PKGSRC_TODO} ${PKGBASE} ${PKGVERSION} | | 120 | ${RUN} PKG_ADMIN=${PKG_ADMIN_CMD:Q} ${SH} ${PKGSRCDIR}/mk/scripts/remove_todo ${PKGSRC_TODO} ${PKGBASE} ${PKGVERSION} |
121 | | | 121 | |
122 | changes-entry-commit: .PHONY ce-error-check | | 122 | changes-entry-commit: .PHONY ce-error-check |
123 | @${STEP_MSG} "Committing the change" | | 123 | @${STEP_MSG} "Committing the change" |
124 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && cvs ${_NB_CVSROOT} commit -m ${_CE_MSG1:Q} ${PKGSRC_CHANGES:T} ${PKGSRC_TODO:T} | | 124 | ${RUN} cd ${PKGSRC_CHANGES_DIR} && cvs ${_NB_CVSROOT} commit -m ${_CE_MSG1:Q} ${PKGSRC_CHANGES:T} ${PKGSRC_TODO:T} |
125 | | | 125 | |
126 | ce-error-check: .PHONY | | 126 | ce-error-check: .PHONY |
127 | .if defined(_CE_ERRORS) && !empty(_CE_ERRORS:M*) | | 127 | .if defined(_CE_ERRORS) && !empty(_CE_ERRORS:M*) |
128 | ${RUN} for msg in ${_CE_ERRORS}; do ${ERROR_MSG} "$$msg"; done; exit 1 | | 128 | ${RUN} for msg in ${_CE_ERRORS}; do ${ERROR_MSG} "$$msg"; done; exit 1 |
129 | .else | | 129 | .else |
130 | @${DO_NADA} | | 130 | @${DO_NADA} |
131 | .endif | | 131 | .endif |
132 | | | 132 | |
133 | # Public targets | | 133 | # Public targets |