add tarball.sh script [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-03-24 19:41:45 +00:00
parent 4a8ab38c8b
commit 91970b0262
2 changed files with 12 additions and 2 deletions

5
.gitignore vendored
View file

@ -30,5 +30,6 @@ package/debian/katie-*.log
package/debian/katie-*.substvars
package/debian/katie-*/
# tarballs from oldmake.sh
scripts/cmake-*.tar.gz
# tarballs from tarball.sh and oldmake.sh
*.tar.xz
scripts/cmake-*.tar.gz

9
scripts/tarball.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
cwd="$(realpath $(dirname $0))"
tarball="Katie-4.9.0-Source"
git archive HEAD --format=tar --prefix="$tarball/" | xz > "$cwd/../$tarball.tar.xz"