Lines Matching +full:git +full:- +full:submodule
10 # the COPYING file in the top-level directory.
17 if test $# -lt 1; then
22 sub_tdir=$(mktemp -d "${tar_file%.tar}.sub.XXXXXXXX")
23 sub_file="${sub_tdir}/submodule.tar"
29 subprojects="keycodemapdb libvfio-user berkeley-softfloat-3
30 berkeley-testfloat-3 anyhow-1-rs arbitrary-int-1-rs bilge-0.2-rs
31 bilge-impl-0.2-rs either-1-rs foreign-0.3-rs itertools-0.11-rs
32 libc-0.2-rs proc-macro2-1-rs
33 proc-macro-error-1-rs proc-macro-error-attr-1-rs quote-1-rs
34 syn-2-rs unicode-ident-1-rs"
39 rm -rf "$sub_tdir"
41 git submodule deinit $sub_deinit
49 if ! git diff-index --quiet --ignore-submodules=all HEAD -- &>/dev/null
51 retval=$(git stash create)
57 if test ! -f "subprojects/$1.wrap"; then
58 error "scripts/archive-source.sh should only process wrap subprojects"
64 # named "[wrap-*]", which helps keeping the script simple.
66 dir=$(sed -n \
67 -e '/^\[wrap-[a-z][a-z]*\]$/,/^\[/{' \
68 -e '/^directory *= */!b' \
69 -e 's///p' \
70 -e 'q' \
71 -e '}' \
74 echo "${dir:-$1}"
77 git archive --format tar "$(tree_ish)" > "$tar_file"
78 test $? -ne 0 && error "failed to archive qemu"
82 test $? -ne 0 && error "failed to download subproject $sp"
83 tar --append --file "$tar_file" --exclude=.git subprojects/"$(subproject_dir $sp)"
84 test $? -ne 0 && error "failed to append subproject $sp to $tar_file"