Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
9e3e9272
Commit
9e3e9272
authored
Sep 16, 2024
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Filter out unused deps in dist command
parent
5d8a0395
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
dist-vendor.sh
build-aux/dist-vendor.sh
+13
-2
No files found.
build-aux/dist-vendor.sh
View file @
9e3e9272
#!/bin/bash
#!/bin/sh
# Since Meson invokes this script as
# "/bin/sh .../dist-vendor.sh DIST SOURCE_ROOT" we can't rely on bash features
set
-eu
export
DIST
=
"
$1
"
export
DIST
=
"
$1
"
export
SOURCE_ROOT
=
"
$2
"
export
SOURCE_ROOT
=
"
$2
"
cd
"
$SOURCE_ROOT
"
cd
"
$SOURCE_ROOT
"
mkdir
"
$DIST
"
/.cargo
mkdir
"
$DIST
"
/.cargo
cargo vendor |
sed
's/^directory = ".*"/directory = "vendor"/g'
>
$DIST
/.cargo/config
# cargo-vendor-filterer can be found at https://github.com/coreos/cargo-vendor-filterer
# It is also part of the Rust SDK extension.
cargo vendor-filterer
--platform
=
x86_64-unknown-linux-gnu
--platform
=
aarch64-unknown-linux-gnu
>
"
$DIST
"
/.cargo/config
rm
-f
vendor/gettext-sys/gettext-
*
.tar.
*
# remove the tarball from checksums
echo
$(
jq
-c
'del(.files["gettext-0.21.tar.xz"])'
vendor/gettext-sys/.cargo-checksum.json
)
>
vendor/gettext-sys/.cargo-checksum.json
# Don't combine the previous and this line with a pipe because we can't catch
# errors with "set -o pipefail"
sed
-i
's/^directory = ".*"/directory = "vendor"/g'
"
$DIST
/.cargo/config"
# Move vendor into dist tarball directory
# Move vendor into dist tarball directory
mv
vendor
"
$DIST
"
mv
vendor
"
$DIST
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment