Skip to content

Instantly share code, notes, and snippets.

@alanc
Created October 5, 2010 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanc/610774 to your computer and use it in GitHub Desktop.
Save alanc/610774 to your computer and use it in GitHub Desktop.
#!/bin/ksh93
GIT_MODULES="app/* data/* doc/* driver/* font/* lib/* mesa/* proto/* util/* xcb/* pixman"
TOP=$(pwd)
for d in $GIT_MODULES ; do
if [[ -d "$TOP/$d/.git" && ! -f "$TOP/$d/NO-PULL" ]] ; then
cd $TOP/$d
HEAD_DESC="$(git describe)"
LAST_TAG="$(git describe --abbrev=0)"
if [[ -z "${LAST_TAG}" ]] ; then
LAST_TAG="$(git describe --abbrev=0 --all HEAD^)"
fi
if [[ "${HEAD_DESC}" != "${LAST_TAG}" ]] ; then
print '=============' $d
git log "${LAST_TAG}"..
fi
fi
done
@alanc
Copy link
Author

alanc commented Oct 5, 2010

Script I use to find which X.Org modules have changes in git that need releasing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment