forked from OSInside/kiwi-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.archive
executable file
·34 lines (30 loc) · 829 Bytes
/
.archive
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany. All rights reserved.
#
# Author: Marcus Schaefer <[email protected]>, 2000
# archiving script to create build required files
#
# CVS ID:
# --------
# Status: Up-to-date
#
#===========================================
# make tarball from the current source tree
#-------------------------------------------
./.version > .revision
git log | ./.changelog | ./.filter > ../kiwi.changes
touch -c -r kiwi.pl .revision
find -type d | grep .git | xargs rm -rf
find -name "*.swp" | xargs rm -f
tar -cjf ../kiwi-docu.tar.bz2 doc
tar -cjf ../kiwi-repo.tar.bz2 system/*repo
cd ..
touch -c -r kiwi/kiwi.pl kiwi
tar -cjf kiwi.tar.bz2 \
--exclude=system/*repo \
--exclude=rpm \
--exclude=doc \
kiwi/
mv kiwi.tar.bz2 kiwi/
mv kiwi-repo.tar.bz2 kiwi/
mv kiwi-docu.tar.bz2 kiwi/