Permalink
Browse files

checking for (and sorting) MANIFEST file

  • Loading branch information...
1 parent 62a774c commit a9ebf2bf8aa4380f4f9cd89e1bb0c4138c654afc @russoz russoz committed Nov 8, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 dev/mkdist
  2. 0 examples/{test1.ldif → single-entry.ldif}
View
@@ -16,6 +16,10 @@ msg() {
}
msg "== Checking current directory"
+[ -f ./MANIFEST ] || {
+ msg "**** Cannot find ./MANIFEST"
+ exit 1
+}
[ -f ./lib/${modulepath} ] || {
msg "**** Cannot find ./lib/${modulepath}"
exit 1
@@ -38,6 +42,12 @@ msg "== Running through perltidy"
exit 1
}
+msg "== Sorting contents of MANIFEST"
+{ sort MANIFEST > __manifest && mv __manifest MANIFEST; } || {
+ msg "**** Cannot sort the MANIFEST file. Aborting."
+ exit 1
+}
+
msg "== Running ./Build.PL"
perl ./Build.PL || exit 1
File renamed without changes.

0 comments on commit a9ebf2b

Please sign in to comment.