Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Martin Kurečka
Plumed AlphaFold
Commits
46bffd11
There was an error fetching the commit references. Please try again later.
Commit
46bffd11
authored
8 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
Better support for tags in macports
parent
47c40941
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macports/generate-portfile.sh
+22
-6
22 additions, 6 deletions
macports/generate-portfile.sh
with
22 additions
and
6 deletions
macports/generate-portfile.sh
+
22
−
6
View file @
46bffd11
...
...
@@ -8,16 +8,32 @@
# This would require a portfile that is based on a tag (e.g. v2.3.0),
# optionally including patches, that can be then uploaded to macports
hash
=
$(
git log
-1
--format
=
"%h"
)
prefix
=
if
git describe
--exact-match
--tags
HEAD 2>/dev/null 1>/dev/null
then
version
=
$(
git describe
--exact-match
--tags
HEAD
)
case
"
$version
"
in
(
v
*
)
version
=
${
version
#v
}
prefix
=
v
esac
else
version
=
$(
git log
-1
--format
=
"%h"
)
fi
if
test
-n
"
$plumed_repository
"
;
then
# get this from environment
repository
=
"
$plumed_repository
"
else
# parent directory:
repository
=
"
${
PWD
%/*
}
"
fi
mkdir
-p
science/plumed
# parent directory:
repository
=
"
${
PWD
%/*
}
"
cat
Portfile.in |
sed
"
s/@_VERSION_@/
$
hash
/
s/@_VERSION_@/
$
version
/
s/@_REVISION_@/0/
"
|
awk
'{
if($1=="@_FETCH_@"){
...
...
@@ -25,7 +41,7 @@ sed "
print "git.url '
$repository
'"
# notice that if instead of hashtag we want to put a version, then it should be
# git.branch v${version}
print "git.branch ${version}"
print "git.branch
'
$prefix
'
${version}"
} else print
}'
>
science/plumed/Portfile
...
...
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