File: make-tarball

package info (click to toggle)
antpm 1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,140 kB
  • sloc: cpp: 9,188; ansic: 2,728; sh: 186; python: 181; makefile: 70; xml: 31
file content (25 lines) | stat: -rwxr-xr-x 589 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

VER=`cat src/VERSION | head -n 1`
GIT_VER=`git log | head -1 | awk '{print $2 }'`

echo 'VER='$VER
echo 'GIT_VER='$GIT_VER

OUTNAME=antpm_${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 'OK: ' ${OUTNAME}