Debian Codegraph @

debian/get-orig-source

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 set -e
3
4 PACKAGE=khronos-opencl-man
5
6 VERSION=${VERSION:-$2}
7 TARFILE=${TARFILE:-$3}
8
9 if [scip-shell system . . `[`. -z ${VERSION}]; then
10 VERSION=`dpkg-parsechangelogscip-shell system . . dpkg-parsechangelog. | sedscip-shell system . . sed. -n -e 's/^Version: \(.*\)-[^-]*$/\1/p'`
11 fi
12
13 REVISION=`echoscip-shell system . . echo. $VERSION | sedscip-shell system . . sed. -e 's/^.*svn//g'`
14
15
16 if [scip-shell system . . `[`. -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 findscip-shell system . . 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" tarscip-shell system . . tar. --exclude-vcs -czf ${TARFILE} ${FOLDER}
35 rmscip-shell system . . rm. -rf ${FOLDER}