| 1 |
#!/bin/bash |
| 2 |
# License: LGPL-3.0-only same as upstream |
| 3 |
# Copyright: 2018 Geert Stappers <[email protected]> |
| 4 |
|
| 5 |
source version |
| 6 |
PKG=listserialportsc |
| 7 |
TARDIR=${PKG}-${VERSION} |
| 8 |
TARFLN=../${PKG}_${VERSION}.orig.tar |
| 9 |
rm -f ${TARFLN}* # have a fresh start |
| 10 |
mkdir ${TARDIR} |
| 11 |
mkdir ${TARDIR}/script |
| 12 |
# copy the files that really matter |
| 13 |
cp -p *.c Makefile ${TARDIR} |
| 14 |
# copy files to prevent "source have been changed" |
| 15 |
cp -p LICENSE.md README.rst version ${TARDIR} |
| 16 |
cp -p script/* ${TARDIR}/script |
| 17 |
tar cf ${TARFLN} ${TARDIR} |
| 18 |
xz ${TARFLN} |
| 19 |
rm -rf ${TARDIR} |
| 20 |
|
| 21 |
# l l |