Debian Codegraph @

debian/update-source.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 if [scip-shell system . . `[`. ${#@} -eq 0 ]; then
4 echoscip-shell system . . echo. "Usage: $0 UPSTREAM_TAG" >&2
5 exit 0
6 fi
7
8 upstream_tag="$1"
9 version=$(echoscip-shell system . . echo. $upstream_tag| sedscip-shell system . . sed. 's,^v,,')
10 archive_name="aws-crt-python-${version}.tar"
11 prefix="aws-crt-python-${version}/"
12 gitscip-shell system . . git. checkout "${upstream_tag}"
13 gitscip-shell system . . git. submodule update --init
14 gitscip-shell system . . git. archive --format tar -o "$archive_name" --prefix="$prefix" "$upstream_tag"
15 # descend recursively and archive each submodule
16 PREFIX="$prefix" gitscip-shell system . . git. submodule \
17 --quiet foreach \
18 --recursive 'git archive --format tar --prefix="${PREFIX}${displaypath}/" -o submodule.tar HEAD'
19 # concatenate with main archive
20 TOPDIR=$(pwdscip-shell system . . pwd.) ARCHIVE_NAME="$archive_name" gitscip-shell system . . git. submodule \
21 --quiet foreach \
22 --recursive \
23 'cd $TOPDIR; tar --concatenate --file="$ARCHIVE_NAME" $displaypath/submodule.tar; rm -fv $displaypath/submodule.tar'
24 gzipscip-shell system . . gzip. -9 "$archive_name"
25 gitscip-shell system . . git. submodule deinit --all
26 gitscip-shell system . . git. checkout debian/sid
27
28