diff --git a/commits.sh b/commits.sh new file mode 100755 index 0000000..0f9a6df --- /dev/null +++ b/commits.sh @@ -0,0 +1,33 @@ +#!/bin/bash +{ + +echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)" +# echo "-------- ------" + +shopt -s dotglob +update() { + for d in "$@"; do + test -d "$d" -a \! -L "$d" || continue + cd "$d" + if [ -d ".git" ] || [ -f ".git" ]; then + echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)" + update * + fi + cd .. + done +} + +cd ./ +update * + +cd ./other +update * +cd .. + +cd ./cores/src +update * + +} | sed -e "s,\(git@github.com:\|https\?://github.com/\)\|\(.git$\),,g" | column -t + +# echo "--------" +# echo "generated by $0" \ No newline at end of file diff --git a/makefile b/makefile index 42cc5c3..9508dd0 100644 --- a/makefile +++ b/makefile @@ -90,6 +90,7 @@ readmes: zip: cd ./build/SYSTEM && echo "$(RELEASE_NAME)\n$(BUILD_HASH)" > version.txt + ./commits.sh > ./build/SYSTEM/commits.txt cd ./build && find . -type f -name '.DS_Store' -delete mkdir -p ./build/PAYLOAD mv ./build/SYSTEM ./build/PAYLOAD/.system