Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
hgitaly
Commits
b80d1214
Commit
b80d1214
authored
1 year ago
by
Georges Racinet
Browse files
Options
Downloads
Patches
Plain Diff
RHGitaly: src-tarball make target
parent
0a957277
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!151
heptapod#743: making 0.36 the new stable
,
!146
RHGitaly source packaging and new pipeline rules
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rust/Makefile
+8
-0
8 additions, 0 deletions
rust/Makefile
rust/src-tarball.sh
+42
-0
42 additions, 0 deletions
rust/src-tarball.sh
with
50 additions
and
0 deletions
rust/Makefile
+
8
−
0
View file @
b80d1214
all
:
help
HGITALY_VERSION
:=
$(
shell
cat
../hgitaly/VERSION
)
MERCURIAL_SOURCE_REPO
=
dependencies/mercurial
MERCURIAL_SOURCE_REV
:=
$(
shell
cat
mercurial.rev
)
MERCURIAL_SOURCE_REMOTE
?=
https://foss.heptapod.net/mercurial/mercurial-devel
...
...
@@ -11,6 +12,9 @@
@
echo
"Available commands: "
@
echo
" make dev-dependencies: prepare development dependencies"
@
echo
" (hg-core, various resources)"
@
echo
" make src-tarball: package the workspace as a tarball,"
@
echo
" including all dependencies that "
@
echo
" cannot be obtained from crates.io"
@
echo
@
echo
"Interesting variables: "
@
echo
" MERCURIAL_SHARE_FROM: if set, Mercurial sources repository"
...
...
@@ -28,3 +32,7 @@
else
hg clone
--noupdate
$(
MERCURIAL_SOURCE_REMOTE
)
$(
MERCURIAL_SOURCE_REPO
)
endif
.PHONY
:
src-tarball
src-tarball
:
dev-dependencies
./src-tarball.sh
${
HGITALY_VERSION
}
This diff is collapsed.
Click to expand it.
rust/src-tarball.sh
0 → 100755
+
42
−
0
View file @
b80d1214
#!/bin/sh
set
-e
if
[
-z
"
$1
"
]
;
then
echo
"usage:
$0
HGITALY_VERSION"
;
exit
1
fi
HGITALY_VERSION
=
$1
set
-u
DIST_HGITALY
=
hgitaly-
${
HGITALY_VERSION
}
DIST_RHGITALY
=
rhgitaly-
${
HGITALY_VERSION
}
TARBALL
=
${
DIST_RHGITALY
}
.tgz
cd
`
dirname
$0
`
mkdir
-p
dist
cd
dist
rm
-rf
${
DIST_HGITALY
}
${
DIST_RHGITALY
}
echo
"Performing extractions"
hg archive
${
DIST_HGITALY
}
rm
-f
${
DIST_HGITALY
}
/rust/dependencies/hg-core
# cp -Lrf cannot do this
cp
-Lr
../dependencies/hg-core
${
DIST_HGITALY
}
/rust/dependencies
mkdir
-p
${
DIST_RHGITALY
}
/hgitaly
for
path
in
hgitaly/VERSION protos rust
;
do
cp
-r
${
DIST_HGITALY
}
/
${
path
}
${
DIST_RHGITALY
}
/
${
path
}
done
echo
"Creating tarball"
tar
czf
${
TARBALL
}
${
DIST_RHGITALY
}
echo
"Removing temporary directories
${
DIST_HGITALY
}
and
${
DIST_RHGITALY
}
"
rm
-rf
${
DIST_HGITALY
}
${
DIST_RHGITALY
}
echo
"tarball available in
`
realpath
${
TARBALL
}
`
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment