File: create-src.sh

package info (click to toggle)
sigviewer 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,232 kB
  • sloc: cpp: 15,174; sh: 32; xml: 29; makefile: 6
file content (17 lines) | stat: -rwxr-xr-x 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

version_major=`sed -n -e 's/^VERSION_MAJOR = \([0-9]*\)$/\1/p' sigviewer.pro`
version_minor=`sed -n -e 's/^VERSION_MINOR = \([0-9]*\)$/\1/p' sigviewer.pro`
version_build=`sed -n -e 's/^VERSION_BUILD = \([0-9]*\)$/\1/p' sigviewer.pro`
version=$version_major.$version_minor.$version_build

mkdir -p sigviewer-$version-src
cp * sigviewer-$version-src
cp -r deb_building_stuff sigviewer-$version-src
cp -r src sigviewer-$version-src/src

rm sigviewer-$version-src/*.pro.user
find sigviewer-$version-src -name "Makefile*" -delete

tar czvf sigviewer-$version-src.tar.gz --exclude=.* sigviewer-$version-src
rm -rf sigviewer-$version-src