From 028eaa963012a80eba06f1302a2f6cf270399f84 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 13 Feb 2009 03:03:45 +0200 Subject: build: missing files to make a spec template --- tools/filter-telepathy-spec.sh | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 tools/filter-telepathy-spec.sh (limited to 'tools') diff --git a/tools/filter-telepathy-spec.sh b/tools/filter-telepathy-spec.sh new file mode 100755 index 0000000..048abe6 --- /dev/null +++ b/tools/filter-telepathy-spec.sh @@ -0,0 +1,57 @@ +git filter-branch --prune-empty --tree-filter \ +'rm -rf \ +AUTHORS \ +NEWS \ +*.conf \ +*.png \ +*.py \ +*.sh \ +*.css \ +order \ +spec* \ +*.manager \ +TODO* \ +_* \ +*.cheddar \ +docs/* \ +doc/* \ +spec/*.xml \ +telepathy/* \ +telepathy/client/* \ +telepathy/server/* \ +tabby/* \ +tools/gen*.py \ +tools/*.def \ +server/*.py \ +client/*.py \ +test/*.sh \ +services*/* \ +client/.git-darcs-dir \ +doc/.git-darcs-dir \ +docs/.git-darcs-dir \ +server/.git-darcs-dir \ +services/.git-darcs-dir \ +services.in/.git-darcs-dir \ +tabby/.git-darcs-dir \ +telepathy/.git-darcs-dir \ +test/expected/.git-darcs-dir \ +test/.git-darcs-dir \ +test/input/.git-darcs-dir \ +test/services.in/.git-darcs-dir \ +test/services.in/org.freedesktop.Telepathy.ConnectionManager.cheddar \ +test/session.conf \ +tools/.git-darcs-dir \ +' -- master + +git for-each-ref --format='%(refname)' refs/original | while read ref; + do git update-ref -d $ref; +done + +git reflog expire --expire=0 + +git prune +git repack -adf + +# drop merges +git rebase $(git log | tail | grep commit | cut -f2 -d' ') + -- cgit v1.2.3