Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
e393b555
Commit
e393b555
authored
10 years ago
by
Jaime Perez
Browse files
Options
Downloads
Patches
Plain Diff
Some fixes to the build script to adapt to the new versioning standard.
parent
870709bb
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
bin/build-release.sh
+25
-20
25 additions, 20 deletions
bin/build-release.sh
with
25 additions
and
20 deletions
bin/build-release.sh
+
25
−
20
View file @
e393b555
...
@@ -2,21 +2,25 @@
...
@@ -2,21 +2,25 @@
set
-e
set
-e
TAG
=
$1
VERSION
=
$1
if
!
shift
;
then
if
!
shift
;
then
echo
"
$0
: Missing required
tag
parameter."
>
&2
echo
"
$0
: Missing required
version
parameter."
>
&2
exit
1
exit
1
fi
fi
if
[
-z
"
$
TAG
"
]
;
then
if
[
-z
"
$
VERSION
"
]
;
then
echo
"
$0
: Empty
tag
parameter."
>
&2
echo
"
$0
: Empty
version
parameter."
>
&2
exit
1
exit
1
fi
fi
TAG
=
"v
$VERSION
"
TARGET
=
"simplesamlphp-
$VERSION
"
cd
/tmp
cd
/tmp
if
[
-a
"
$TA
G
"
]
;
then
if
[
-a
"
$TA
RGET
"
]
;
then
echo
"
$0
: Destination already exists:
$TA
G
"
>
&2
echo
"
$0
: Destination already exists:
$TA
RGET
"
>
&2
exit
1
exit
1
fi
fi
...
@@ -24,27 +28,28 @@ umask 0022
...
@@ -24,27 +28,28 @@ umask 0022
REPOPATH
=
"https://github.com/simplesamlphp/simplesamlphp.git"
REPOPATH
=
"https://github.com/simplesamlphp/simplesamlphp.git"
git clone
$REPOPATH
$TA
G
git clone
$REPOPATH
$TA
RGET
cd
$TA
G
cd
$TA
RGET
git checkout
$TAG
git checkout
$TAG
cd
..
cd
..
# Use composer only on newer versions that have a composer.json
# Use composer only on newer versions that have a composer.json
if
[
-f
"
$TA
G
/composer.json"
]
;
then
if
[
-f
"
$TA
RGET
/composer.json"
]
;
then
if
[
!
-x
"TA
G
/composer.phar"
]
;
then
if
[
!
-x
"
$
TA
RGET
/composer.phar"
]
;
then
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
$TA
G
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
$TA
RGET
fi
fi
# Install dependencies (without vcs history or dev tools)
# Install dependencies (without vcs history or dev tools)
php
"
$TA
G
/composer.phar"
install
--no-dev
--prefer-dist
-o
-d
"
$TA
G
"
php
"
$TA
RGET
/composer.phar"
install
--no-dev
--prefer-dist
-o
-d
"
$TA
RGET
"
fi
fi
mkdir
-p
"
$TAG
/config"
"
$TAG
/metadata"
mkdir
-p
"
$TARGET
/config"
"
$TARGET
/metadata"
cp
-rv
"
$TAG
/config-templates/"
*
"
$TAG
/config/"
cp
-rv
"
$TARGET
/config-templates/"
*
"
$TARGET
/config/"
cp
-rv
"
$TAG
/metadata-templates/"
*
"
$TAG
/metadata/"
cp
-rv
"
$TARGET
/metadata-templates/"
*
"
$TARGET
/metadata/"
rm
-rf
"
$TAG
/.git"
rm
-rf
"
$TARGET
/.git"
rm
"
$TAG
/composer.phar"
rm
"
$TARGET
/composer.phar"
tar
--owner
0
--group
0
-cvzf
"
$TAG
.tar.gz"
"
$TAG
"
tar
--owner
0
--group
0
-cvzf
"
$TARGET
.tar.gz"
"
$TARGET
"
rm
-rf
"
$TAG
"
rm
-rf
"
$TARGET
"
echo
"Created: /tmp/
$TARGET
.tar.gz"
echo
"Created: /tmp/
$TAG
.tar.gz"
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