Lines Matching +full:git +full:- +full:submodule
1 #!/bin/bash -e
11 # See the COPYING file in the top-level directory.
14 if test ! -f "$src/subprojects/$1.wrap"; then
15 echo "scripts/archive-source.sh should only process wrap subprojects"
22 # named "[wrap-*]", which helps keeping the script simple.
24 dir=$(sed -n \
25 -e '/^\[wrap-[a-z][a-z]*\]$/,/^\[/{' \
26 -e '/^directory *= */!b' \
27 -e 's///p' \
28 -e 'q' \
29 -e '}' \
32 echo "${dir:-$1}"
35 if [ $# -ne 2 ]; then
42 SUBPROJECTS="libvfio-user keycodemapdb berkeley-softfloat-3
43 berkeley-testfloat-3 anyhow-1-rs arbitrary-int-1-rs bilge-0.2-rs
44 bilge-impl-0.2-rs either-1-rs foreign-0.3-rs itertools-0.11-rs
45 libc-0.2-rs proc-macro2-1-rs
46 proc-macro-error-1-rs proc-macro-error-attr-1-rs quote-1-rs
47 syn-2-rs unicode-ident-1-rs"
51 destination=qemu-${version}
53 git clone --single-branch -b "v${version}" -c advice.detachedHead=false \
58 git submodule update --init --single-branch
61 (cd roms/seabios && git describe --tags --long --dirty > .version)
63 # Fetch edk2 submodule's submodules, since it won't have access to them via
66 # As recommended by the EDK2 readme, we don't use --recursive here.
67 # EDK2 won't use any code or feature from a submodule of a submodule,
71 # adds a new submodule or changes its use of an existing one and
73 (cd roms/edk2 && git submodule update --init --depth 1)
76 exclude=(--exclude=.git)
79 if grep -xqF "[wrap-file]" $src/subprojects/$sp.wrap; then
80 exclude+=(--exclude=subprojects/"$(subproject_dir $sp)")
83 tar "${exclude[@]}" -cJf ${destination}.tar.xz ${destination}
84 rm -rf ${destination}