File: build_version.sh

package info (click to toggle)
libtorrent-rasterbar 2.0.11-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 18,304 kB
  • sloc: cpp: 190,670; python: 7,142; makefile: 1,374; ansic: 574; sh: 317; xml: 104
file content (14 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -x

# echo pull version from version header
VERSION=$(grep "#define LIBTORRENT_VERSION " ../include/libtorrent/version.hpp | awk '{ print $3 }')
# strip quotes
VERSION=${VERSION%\"}
VERSION=${VERSION#\"}
mkdir -p version/${VERSION}
TARGET=version/${VERSION}

make stage WEB_PATH=${TARGET}