Skip to content

Commit

Permalink
Beatuiful package is created now
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed Jan 14, 2013
1 parent cca685a commit c874926
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
thesis-package/
thesis-package.tar.gz
35 changes: 31 additions & 4 deletions create-archive.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
#!/bin/bash -xe
(cd prototype; git archive --format=tar.gz --prefix=prototype HEAD > ../thesis-package/prototype.tar.gz)
(cd Comb; git archive --format=tar.gz --prefix=prototype HEAD > ../thesis-package/comb.tar.gz)
#!/bin/bash -e
mkdir thesis-package
rm -rf thesis-package.tar.gz thesis-package/*

(cd prototype && git archive --prefix=prototype/ -o ../thesis-package/prototype.tar HEAD)
(cd prototype/lib/php-activerecord && git archive --prefix=php-activerecord/ -o ../../../thesis-package/php-activerecord.tar HEAD)
(cd Comb && git archive --prefix=Comb/ -o ../thesis-package/comb.tar HEAD)

cd thesis-package
tar -xf prototype.tar
tar -xf comb.tar

cd Comb
rm Editor/app/scripts/comb
cp -r parser Editor/app/scripts/comb

rm MovieDatabase/client/scripts/vendor/comb
cp -r parser MovieDatabase/client/scripts/vendor/comb

cp -r ../../Comb/MovieDatabase/server/vendor MovieDatabase/server

cd ..

cd prototype/lib
tar -xf ../../php-activerecord.tar
cd ../..

rm *.tar
cd ..

cp thesis/thesis.*.pdf thesis-package/
tar -cvf thesis-package.tar.gz thesis-package
tar --exclude=.DS_Store -cf thesis-package.tar.gz thesis-package
sha1sum thesis-package.tar.gz

0 comments on commit c874926

Please sign in to comment.