Skip to content

Commit

Permalink
changelog script clean up #3
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed May 29, 2024
1 parent 674667d commit 93ddd87
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions admin/make-changelog.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Create changelog from svn log
# Create changelog from git log

EXTDIR=`dirname $(readlink -fen $0)`
. "$EXTDIR"/env.sh
Expand All @@ -9,25 +9,6 @@ echo "Generating changelog" && \
echo "Updating git..." && \
git pull >> $LOG && \
echo "done" && \

# find the current revision number of svn
# LAST_COMMIT_NO=`svn info ${TRED_SRC_DIR} | grep "Revision:" | cut -d ':' -f 2 | cut -d ' ' -f 2` && \
#
# if [ -a ${TRED_SRC_DIR}/ChangeLog ]; then
# # if ChangeLog exists, we should update it only if it does not already contain the last revision
# LAST_COMMIT_IN_CHANGELOG=`grep -c "r$LAST_COMMIT_NO" ${TRED_SRC_DIR}/ChangeLog`
# else
# # if ChangeLog does not exist, it needs to be created
# LAST_COMMIT_IN_CHANGELOG=0
# fi && \

## echo "LAST_COMMIT_NO = $LAST_COMMIT_NO"
## echo "LAST_COMMIT_IN_CHANGELOG = $LAST_COMMIT_IN_CHANGELOG"

# if [ "$LAST_COMMIT_IN_CHANGELOG" == 0 ]; then
echo "Transforming git log --> ChangeLog (this takes a while)..." && \
cd ${TRED_SRC_DIR} && ${GIT_TO_CHANGELOG} > ChangeLog && \
# else
# echo "ChangeLog is already up to date."
# fi && \
echo "Transforming git log --> ChangeLog (this takes a while)..." && \
cd ${TRED_SRC_DIR} && ${GIT_TO_CHANGELOG} > ChangeLog && \
echo "Done"

0 comments on commit 93ddd87

Please sign in to comment.