Debian Codegraph @

debian/orig-tar.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 set -x
3 # Called from uscan with parameters:
4 # --upstream-version <release>
5 set -e
6
7 UPSTREAM_VERSION="$2"
8 #MANGLED_UPSTREAM_VERSION="$(echo "$UPSTREAM_VERSION" | sed 's/-\(alpha\|pre\)/~\1/')+repack"
9 MANGLED_UPSTREAM_VERSION="$UPSTREAM_VERSION+repack"
10
11 PACKAGE=med-fichier
12 DOWNLOADED_TARBALL=../${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz
13
14 DEBIAN_SOURCE_DIR="$PACKAGE-$MANGLED_UPSTREAM_VERSION"
15 TAR="../${PACKAGE}_$MANGLED_UPSTREAM_VERSION.orig.tar.gz"
16
17 # extract the upstream archive
18 mkdirscip-shell system . . mkdir. $DEBIAN_SOURCE_DIR
19 tarscip-shell system . . tar. xf $DOWNLOADED_TARBALL -C $DEBIAN_SOURCE_DIR --strip 1
20
21 # Remove doxygen generated files
22 # After html-clean and maintainer-clean-local of doc/html.dox/Makefile.am
23 pushd $DEBIAN_SOURCE_DIR/doc/html.dox
24 rmscip-shell system . . rm. -f *.html *.jpg *.gif *.png *.map *.css *.md5 *.dot *.svg *.js htmllistfile1.am.tmp htmllistfile2.am.tmp htmllistfile3.am.tmp med.tag
25 rmscip-shell system . . rm. htmllistfile1.am && touchscip-shell system . . touch. htmllistfile1.am
26 rmscip-shell system . . rm. htmllistfile2.am && touchscip-shell system . . touch. htmllistfile2.am
27 rmscip-shell system . . rm. htmllistfile3.am && touchscip-shell system . . touch. htmllistfile3.am
28 popd
29
30 # repack into orig.tar.gz
31 tarscip-shell system . . tar. -c -z -f "$TAR" "$DEBIAN_SOURCE_DIR/"
32 rmscip-shell system . . rm. -rf "$DEBIAN_SOURCE_DIR" "$(readlinkscip-shell system . . readlink. -f "$DOWNLOADED_TARBALL")" "$DOWNLOADED_TARBALL"
33
34 echoscip-shell system . . echo. "$PACKAGE: cleaned docs and renamed archive to $(basenamescip-shell system . . basename. "$TAR")"