Debian Codegraph @

debian/get-orig-source

raw symbols SCIP
1 #!/bin/sh
2 set -e
3
4 PACKAGE=khronos-opencl-man
5
6 VERSION=${VERSION:-$2}
7 TARFILE=${TARFILE:-$3}
8
9 if [ -z ${VERSION}]; then
10 VERSION=`dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*$/\1/p'`
11 fi
12
13 REVISION=`echo $VERSION | sed -e 's/^.*svn//g'`
14
15
16 if [ -z ${TARFILE}]; then
17 TARFILE=${PACKAGE}_${VERSION}.orig.tar.gz
18 fi
19
20 FOLDER=${PACKAGE}-${VERSION}
21
22 URL=https://cvs.khronos.org/svn/repos/registry/trunk/public/cl/sdk/1.2/docs/man
23 svn export --quiet --revision ${REVISION} ${URL} ${FOLDER}
24
25 # we will re-generate them anyway:
26 find ${FOLDER}/xhtml -name \*.html -not -name index.html -not -name Opencl_header.html -not -name Opencl_tofc.html -not -name oclRefPages-Title.html -delete
27
28 URL2=https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man4
29 cd ${FOLDER}
30 svn export --quiet $URL2/Makefile
31 svn export --quiet $URL2/usr
32 cd ..
33
34 GZIP="--best --no-name" tar --exclude-vcs -czf ${TARFILE} ${FOLDER}
35 rm -rf ${FOLDER}