[Lunar-commits] <lunar-iso> Improved moonbase-git

Peter de Ridder peter at lunar-linux.org
Wed Aug 28 11:54:22 CEST 2013


commit 3345885c8c233c14457c0ee4eda230999697f320
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Tue, 27 Aug 2013 12:49:26 -0700
URL: https://github.com/lunar-linux/lunar-iso/commit/3345885c8c233c14457c0ee4eda230999697f320

Improved moonbase-git
---
  scripts/pack-moonbase-git | +4/-4     
  1 file changed, 4 insertions(+), 4 deletions(-)

--- a/scripts/pack-moonbase-git
+++ b/scripts/pack-moonbase-git
@@ -26,13 +26,13 @@ for n in ${REPOS[@]}; do
     # Clone the repo if it doesn't exists. Helping the user here.
     git clone git://github.com/lunar-linux/moonbase-$n $P
   fi
-  ( cd $P; git ls-files) \
+  ( cd $P; git archive -o ../$n.tar --format=tar --prefix=$n/ HEAD )
+  tar -tf $P.tar \
     | grep '/DETAILS$' \
     | sed 's/\/DETAILS$//' \
-    | sed "s/^/$n\//" \
     | sed 's/\([a-zA-Z0-9/_-]*\)\/\([a-zA-Z0-9_+-]*\)/\2:\1/' > $P/module.index
-  git clone $P $GIT_DIR/moonbase/$n
-  rm -rf $GIT_DIR/moonbase/$n/.git
+  tar -xf $P.tar -C $GIT_DIR/moonbase
+  rm $P.tar
 done
 
 # why does this not work?




More information about the Lunar-commits mailing list