* updated libkdcraw (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / scripts / Create-SrcTar
blob4e1cf9d303331ddb5427ab17ef89b2c9c2121c90
1 #!/bin/bash
3 # --- T2-COPYRIGHT-NOTE-BEGIN ---
4 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 #
6 # T2 SDE: scripts/Create-SrcTar
7 # Copyright (C) 2004 - 2005 The T2 SDE Project
8 # Copyright (C) 1998 - 2003 ROCK Linux Project
9 #
10 # More information can be found in the files COPYING and README.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; version 2 of the License. A copy of the
15 # GNU General Public License can be found in the file COPYING.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 eval "`grep -A 10 '\[BEGIN\]' scripts/parse-config | grep -B 10 '\[END\]'`"
20 echo -n 'Creating source tar ... '
22 # Create temp source base dir
24 src="`mktemp -d -p $PWD src.srctar.XXXXXXXXXX`"
25 rm -rf $src/t2-src-$sdever
26 mkdir -p $src/t2-src-$sdever
28 for x in scripts target misc package architecture doc
30 ln -s ../../$x $src/t2-src-$sdever/$x
31 done
33 # Create tar file
35 cd $src
36 tar --use-compress-program=bzip2 --owner root --group root \
37 --exclude .svn --exclude CVS -cf ${1:-t2-src-$sdever.tar.bz2} t2-src-$sdever/*/*
39 # Done.
41 cd $base
42 rm -rf $src/
43 du -sh ${1:-t2-src-$sdever.tar.bz2} | tr '\t' ' '