chiark / gitweb /
changelog: Document reorganisations
[dgit.git] / tests / lib-import-chk
index 88984c1b625ebf61425aecfb882f939f1eab2fe0..d6633f96316057f9f2fe96792e493ff850ea91e0 100644 (file)
@@ -1,11 +1,11 @@
 
 t-import-chk-authorship () {
        perl -ne 'print $1,"\n" if m/^ -- (\S.*\>)  /' debian/changelog \
-               | sort -u \
+               | t-sort -u \
                > $tmp/authorship.changelog
        ${import_chk_changelog_massage:-:} $tmp/authorship.changelog
        git log --pretty=format:'%an <%ae>%n%cn <%ce>' \
-               | sort -u \
+               | t-sort -u \
                > $tmp/authorship.commits
        diff $tmp/authorship.{changelog,commits}
 }
@@ -63,7 +63,7 @@ t-import-chk2() {
        t-ref-same refs/heads/first-2nd-import
 
        for orig in ../${p}_${v%-*}.orig*.tar.*; do
-               tar -atf $orig | LC_ALL=C sort >../files.o
+               tar -atf $orig | t-sort >../files.o
                pfx=$(perl <../files.o -ne '
                        while (<>) {
                                m#^([^/]+/)# or exit 0;
@@ -87,7 +87,7 @@ t-import-chk2() {
                        t-ref-same-val "$orig $start" "$imp"
                done
                git ls-tree -r --name-only "$t_ref_val:" \
-                       | sort >../files.g
+                       | t-sort >../files.g
                diff ../files.{o,g}
        done
        cd ..