Parcourir la source

Improve pkg.sh script performance

.tar.gz files are now taken the tar archive, to avoid the recreation git archive
was doing.
Leo il y a 9 ans
Parent
commit
583f0d23f7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      pkg.sh

+ 2 - 2
pkg.sh

@@ -13,12 +13,12 @@ id=`git describe --abbrev=40 --candidates=50 HEAD`
 name=OcLaunch_${id}_src # _src emphasis the difference with binary tarballs
 name=OcLaunch_${id}_src # _src emphasis the difference with binary tarballs
 
 
 echo "Writing in" $name".*"
 echo "Writing in" $name".*"
-git archive HEAD --prefix=${name}/ --format=tar.gz -o dist/${name}.tar.gz -9
 git archive HEAD --prefix=${name}/ --format=zip -o dist/${name}.zip -9
 git archive HEAD --prefix=${name}/ --format=zip -o dist/${name}.zip -9
-# Creating .xz and .bz2 from tar archive
+# Creating .xz .gz and .bz2 from tar archive
 tar_name=${name}.tar
 tar_name=${name}.tar
 git archive HEAD --prefix=${name}/ --format=tar -o dist/${tar_name}
 git archive HEAD --prefix=${name}/ --format=tar -o dist/${tar_name}
 cd dist
 cd dist
+gzip -c9 < ${tar_name} >  ${tar_name}.gz
 bzip2 -c9 < ${tar_name} >  ${tar_name}.bz2
 bzip2 -c9 < ${tar_name} >  ${tar_name}.bz2
 xz -c9 < ${tar_name} >  ${tar_name}.xz
 xz -c9 < ${tar_name} >  ${tar_name}.xz