diff options
author | RALOVICH, Kristóf <tade60@freemail.hu> | 2013-03-21 17:30:40 +0100 |
---|---|---|
committer | RALOVICH, Kristóf <tade60@freemail.hu> | 2013-03-21 17:30:40 +0100 |
commit | 8a6c51579e22e9ae8cbe1bc05365c588b267c829 (patch) | |
tree | 004033ca5368605580610027fe18086a174b7719 /scripts | |
parent | 3e57ed99a88dc839ecc90fc09b1a89eb165d0760 (diff) |
first working deb packagev1.0-deb-packagedebian/1.0-1
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deb | 12 | ||||
-rwxr-xr-x | scripts/make-tarball | 19 | ||||
-rw-r--r-- | scripts/origsrc-file-list | 44 |
3 files changed, 66 insertions, 9 deletions
diff --git a/scripts/deb b/scripts/deb index 9e270c2..61992f4 100755 --- a/scripts/deb +++ b/scripts/deb @@ -6,21 +6,15 @@ eval ROOT=$ROOT echo $ROOT echo -BUILD=./build - -( - cd $BUILD - make dist -) - +./scripts/make-tarball echo -e "\nTarball OK\n" -mv $BUILD/antpm*.orig.tar.gz $ROOT/ +mv antpm_*.orig.tar.xz $ROOT/ ( cd $ROOT; mkdir build; cd build - tar -z -xf ../antpm*.tar.gz + tar --xz -xf ../antpm*.tar.xz echo -e "\nStarting to build...\n" debuild -us -uc && echo -e "\nBuild OK\ndeb package in '${ROOT}' \n"; ) diff --git a/scripts/make-tarball b/scripts/make-tarball new file mode 100755 index 0000000..b95bcaa --- /dev/null +++ b/scripts/make-tarball @@ -0,0 +1,19 @@ +#!/bin/bash + +VER=1.0 +GIT_VER=`git log | head -1 | awk '{print $2 }'` +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 diff --git a/scripts/origsrc-file-list b/scripts/origsrc-file-list new file mode 100644 index 0000000..4f02de7 --- /dev/null +++ b/scripts/origsrc-file-list @@ -0,0 +1,44 @@ +debian +debian/rules +debian/source +debian/source/format +debian/copyright +debian/control +debian/gpl-2.0.txt +debian/compat +debian/changelog +src +src/CMakeLists.txt +src/lqueue.hpp +src/AntMessage.hpp +src/SerialTty.hpp +src/AntChannel.hpp +src/GarminConvert.hpp +src/w_stdint.h +src/antpm-downloader.cpp +src/SerialTty.cpp +src/AntChannel.cpp +src/AntMessenger.hpp +src/AntFr310XT.hpp +src/common.cpp +src/antpm-fit2gpx.cpp +src/antdefs.hpp +src/SerialUsb.hpp +src/SerialUsb.cpp +src/antpm-usbmon2ant.cpp +src/GarminConvert.cpp +src/GPX.cpp +src/stdintfwd.hpp +src/w_inttypes.h +src/FIT.hpp +src/AntFr310XT.cpp +src/AntMessage.cpp +src/FIT.cpp +src/GPX.hpp +src/SmartPtrFwd.hpp +src/cmake +src/cmake/Findlibusb-1.0.cmake +src/cmake/FindLIBUSB.cmake +src/Serial.hpp +src/common.hpp +src/AntMessenger.cpp |