File: make-tarball

package info (click to toggle)
quickroute-gps 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,576 kB
  • sloc: cs: 74,488; makefile: 72; sh: 43
file content (31 lines) | stat: -rwxr-xr-x 894 bytes parent folder | download | duplicates (3)
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
#!/bin/bash


A=`grep AssemblyInformationalVersion QuickRoute.UI/Properties/AssemblyInfo.cs | grep -o '[0-9]*' | head -1`
echo $A
B=`grep AssemblyInformationalVersion QuickRoute.UI/Properties/AssemblyInfo.cs | grep -o '[0-9]*' | head -2 | tail -1`
echo $B
C=`grep AssemblyInformationalVersion QuickRoute.UI/Properties/AssemblyInfo.cs | grep -o '[0-9]*' |  tail -1`
echo $C

VER=$A.$B

#VER=2.4
GIT_VER=`git log | head -1 | awk '{print $2 }'`
OUTNAME=quickroute-gps_${VER}.orig.tar

FILES=`find . -type f -name \* -print | grep -v .git`
TMP_LIST=`mktemp`

#echo $FILES
#echo "TMP_LIST=${TMP_LIST}"
#echo ${FILES} > ${TMP_LIST}
#echo ${FILES} > dist-file-list

#find . -type f -name \* -print | grep -v .git > scripts/dist-file-list

rm -fv ${OUTNAME}.gz ${OUTNAME}.xz
#tar -czvf ${OUTNAME}.gz -T scripts/origsrc-file-list
tar --xz -cf ${OUTNAME}.xz -T scripts/origsrc-file-list

echo ${OUTNAME}