Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monado
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
monado
Commits
757267a7
Commit
757267a7
authored
3 years ago
by
Ryan Pavlik
Browse files
Options
Downloads
Patches
Plain Diff
d/extra/prepare-commit-package.sh: Improve verbosity, specificity.
parent
c0c3f225
No related branches found
No related tags found
No related merge requests found
Pipeline
#26236
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/extra/prepare-commit-package.sh
+8
-3
8 additions, 3 deletions
debian/extra/prepare-commit-package.sh
with
8 additions
and
3 deletions
debian/extra/prepare-commit-package.sh
+
8
−
3
View file @
757267a7
#!/bin/sh
#!/bin/sh
# Copyright 2020-202
1
, Ryan Pavlik <ryan@ryanpavlik.com>
# Copyright 2020-202
2
, Ryan Pavlik <ryan@ryanpavlik.com>
# SPDX-License-Identifier: CC0-1.0
# SPDX-License-Identifier: CC0-1.0
# Packages produced this way are for automated use only and shouldn't be uploaded to the Debian archive.
# Packages produced this way are for automated use only and shouldn't be uploaded to the Debian archive.
...
@@ -12,21 +12,26 @@ set -e
...
@@ -12,21 +12,26 @@ set -e
if
[
x
"
$1
"
!=
x
]
;
then
if
[
x
"
$1
"
!=
x
]
;
then
COMMIT_TO_PACKAGE
=
$1
COMMIT_TO_PACKAGE
=
$1
echo
"Package version will describe commit specified on command line:
${
COMMIT_TO_PACKAGE
}
"
export
COMMIT_TO_PACKAGE
export
COMMIT_TO_PACKAGE
else
else
COMMIT_TO_PACKAGE
=
master
COMMIT_TO_PACKAGE
=
main
echo
"Package version will describe default commit:
${
COMMIT_TO_PACKAGE
}
"
export
COMMIT_TO_PACKAGE
export
COMMIT_TO_PACKAGE
fi
fi
if
[
x
"
$2
"
!=
x
]
;
then
if
[
x
"
$2
"
!=
x
]
;
then
PKG_REVISION
=
$2
PKG_REVISION
=
$2
echo
"Appending custom revision suffix specified on command line:
${
PKG_REVISION
}
"
export
PKG_REVISION
export
PKG_REVISION
else
else
PKG_REVISION
=
1~bpo11~ci
$(
date
--utc
"+%Y%m%d"
)
PKG_REVISION
=
1~bpo11~ci
$(
date
--utc
"+%Y%m%d"
)
echo
"Appending auto-generated revision suffix:
${
PKG_REVISION
}
"
export
PKG_REVISION
export
PKG_REVISION
fi
fi
UPSTREAM_VER
=
$(
git describe
$COMMIT_TO_PACKAGE
|
sed
-E
-e
's/^v//'
-e
's/-([0-9]+)-g([0-9a-f])/+git\1.\2/'
)
UPSTREAM_VER
=
$(
git describe
--exclude
"v0*"
"
$COMMIT_TO_PACKAGE
"
|
sed
-E
-e
's/^v//'
-e
's/-([0-9]+)-g([0-9a-f])/+git\1.\2/'
)
echo
"Computed package version
${
UPSTREAM_VER
}
"
git archive
-o
"../monado_
${
UPSTREAM_VER
}
.orig.tar.gz"
${
COMMIT_TO_PACKAGE
}
git archive
-o
"../monado_
${
UPSTREAM_VER
}
.orig.tar.gz"
${
COMMIT_TO_PACKAGE
}
dch
--newversion
"
${
UPSTREAM_VER
}
-
${
PKG_REVISION
}
"
--preserve
"Automated CI build of commit
${
COMMIT_TO_PACKAGE
}
"
dch
--newversion
"
${
UPSTREAM_VER
}
-
${
PKG_REVISION
}
"
--preserve
"Automated CI build of commit
${
COMMIT_TO_PACKAGE
}
"
)
)
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