-
Notifications
You must be signed in to change notification settings - Fork 71
/
make-srctar
41 lines (33 loc) · 1.01 KB
/
make-srctar
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
35
36
37
38
39
#!/bin/sh
DT_VERSION=`cat inc/defines.h | awk 'BEGIN {i = 1} /#define DT_VERSION/ {ver[i++] = $3} END {printf("%d.%d.%d\n", ver[1], ver[2], ver[3])}'`
SRC_DIR=dwarf-therapist-$DT_VERSION
TAR_FILE=../dwarf-therapist_$DT_VERSION.orig.tar.gz
#TAR_FILE_ORIG=../dwarf-therapist_$DT_VERSION.orig.tar.gz
rm -f $TAR_FILE
mkdir $SRC_DIR
mkdir $SRC_DIR/resources
mkdir $SRC_DIR/scripts
cp resources.qrc $SRC_DIR
cp -R resources/img $SRC_DIR/resources
cp resources/default_gridviews.dtg $SRC_DIR/resources
cp hammer.ico $SRC_DIR
#cp hammer.icns $SRC_DIR
cp scripts/build_packages $SRC_DIR/scripts
cp -R debian $SRC_DIR
cp -R dist $SRC_DIR
cp -R doc $SRC_DIR
cp dwarftherapist.pro $SRC_DIR
cp DwarfTherapist.rc $SRC_DIR
#cp -R etc $SRC_DIR
cp -R inc $SRC_DIR
cp LICENSE.txt $SRC_DIR/COPYRIGHT
cp README.rst $SRC_DIR/README
cp resource.h $SRC_DIR
cp -r src $SRC_DIR
cp -r thirdparty $SRC_DIR
cp -r ui $SRC_DIR
mkdir -p $SRC_DIR/bin
mkdir -p $SRC_DIR/bin/release
tar -czf $TAR_FILE $SRC_DIR
#cp $TAR_FILE $TAR_FILE_ORIG
rm -rf $SRC_DIR