[Bps-public-commit] SD branch, master, updated. 0.74-49-ge908af8

? sunnavy sunnavy at bestpractical.com
Mon Aug 23 22:12:13 EDT 2010


The branch, master has been updated
       via  e908af8625c0637ec28bd99d6cb857d2184630f5 (commit)
      from  4accfb6c1761f380568b0f390864682e9a543ca8 (commit)

Summary of changes:
 tools/shipwright-package         |    8 ++++++++
 tools/shipwright-package-minimal |    6 ++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit e908af8625c0637ec28bd99d6cb857d2184630f5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Aug 24 10:13:42 2010 +0800

    tweak shipwright package a bit

diff --git a/tools/shipwright-package b/tools/shipwright-package
index cc87840..badc24e 100644
--- a/tools/shipwright-package
+++ b/tools/shipwright-package
@@ -1,3 +1,4 @@
+export CWD=`pwd`
 export TODAY=`date +%Y-%m-%d`
 export REPO=${HOME}/shipwright-sd-${TODAY}.git/
 #export REPO=/tmp/shipwright-sd-${TODAY}.git/
@@ -56,9 +57,16 @@ rm -rf hack-$$
 
 git clone file://$REPO /tmp/sdex-$$
 cd /tmp/sdex-$$ 
+
+rm -rf .git
+
 echo "# one argument per line
 --skip-man-pages
 --skip-test
 --install-base=~/sd
 " > __default_builder_options 
+
 ./bin/shipwright-utility --generate-tar-file /tmp/sd-image-${TODAY}.bin
+
+rm -rf /tmp/sdex-$$
+cd $CWD
diff --git a/tools/shipwright-package-minimal b/tools/shipwright-package-minimal
index 4db261a..96ab736 100644
--- a/tools/shipwright-package-minimal
+++ b/tools/shipwright-package-minimal
@@ -1,3 +1,4 @@
+export CWD=`pwd`
 export TODAY=`date +%Y-%m-%d`
 export REPO=${HOME}/shipwright-sd-min-${TODAY}
 export GIT_PATH="git:file://$REPO"
@@ -42,9 +43,14 @@ rm -rf hack-$$
 
 git clone file://$REPO /tmp/sdex-$$
 cd /tmp/sdex-$$ 
+rm -rf .git
+
 echo "# one argument per line
 --skip-man-pages
 --skip-test
 --install-base=~/sd
 " > __default_builder_options 
 ./bin/shipwright-utility --generate-tar-file /tmp/sd-image-${TODAY}.bin
+
+rm -rf /tmp/sdex-$$
+cd $CWD

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list