]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
gen_filelist using new algorithm
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 9 Jul 2007 17:49:42 +0000 (17:49 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 9 Jul 2007 17:49:42 +0000 (17:49 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@399 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 2be3ec677b543d09622e96cd4ac12da40710ffba..8d2bb2f2cc0334da22e71d9203f9aa0d663b9bf0 100644 (file)
@@ -576,7 +576,8 @@ function gen_filelist {
   # generate FILELIST.TXT
   # usage: gen_filelist
 
-  for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILELIST.TXT
+  find . -type f -name *.tgz -follow -print | sort | tr '\n' '\0' | \
+       xargs -0r ls -ldL --time-style=long-iso > FILELIST.TXT
   echo "Created new FILELIST.TXT"
 
 }