version 1.2, 2025/04/04 18:14:56
|
version 1.4, 2025/04/06 03:38:05
|
Line 25
|
Line 25
|
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# |
# |
# $Log$ |
# $Log$ |
|
# Revision 1.4 2025/04/06 03:38:05 snw |
|
# Prepare for adding packaging functionality to fmd |
|
# |
|
# Revision 1.3 2025/04/04 18:19:13 snw |
|
# Fix fmd-commit call to fmd log |
|
# |
# Revision 1.2 2025/04/04 18:14:56 snw |
# Revision 1.2 2025/04/04 18:14:56 snw |
# Fix log and commit scripts |
# Fix log and commit scripts |
# |
# |
Line 37
|
Line 43
|
# |
# |
|
|
function usage() { |
function usage() { |
echo "usage: fmd commit <commit-message>" |
echo |
exit 1 |
echo "Commits your changes to the FreeM CVS repository" |
|
echo |
|
echo "usage:" |
|
echo |
|
echo " fmd commit \"<commit-message>\"" |
|
echo |
|
echo " <commit-message> should describe what this change does." |
|
echo |
|
echo "NOTE: the commit message will be added to the ChangeLog" |
|
echo " prior to committing the repository." |
|
echo |
|
exit 0 |
} |
} |
|
|
|
if [[ $1 == "help" ]] |
|
then |
|
usage |
|
fi |
|
|
|
|
if [[ $# == 0 ]] |
if [[ $# == 0 ]] |
then |
then |
echo "commit: must be run from 'fmd commit'" |
echo "commit: must be run from 'fmd commit'" |
Line 58 then
|
Line 81 then
|
usage |
usage |
fi |
fi |
|
|
|
FMD="$1" |
COMMIT_MESSAGE="$2" |
COMMIT_MESSAGE="$2" |
|
|
|
OLD_CVS_RSH="${CVS_RSH}" |
|
OLD_CVSROOT="${CVSROOT}" |
|
|
|
export CVSROOT=":ext:${_fmd_cvsuser}@cvs.coherent-logic.com:/home/cvsroot" |
|
export CVS_RSH="$(which ssh)" |
|
|
${FMD} log "${COMMIT_MESSAGE}" |
${FMD} log "${COMMIT_MESSAGE}" |
cvs ci -m "${COMMIT_MESSAGE}" |
cvs ci -m "${COMMIT_MESSAGE}" |
|
|
|
export CVSROOT="${OLD_CVSROOT}" |
|
export CVS_RSH="${OLD_CVS_RSH}" |
|
|