Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
mahara
mahara-scripts
Commits
92e7e429
Commit
92e7e429
authored
Aug 12, 2009
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tarballs -- put all files in a mahara-<version> directory
parent
cb398fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
release.sh
release.sh
+6
-7
No files found.
release.sh
View file @
92e7e429
...
...
@@ -16,10 +16,10 @@ if [ -z "$1" ] || [ -z "$2" ]; then
exit
1
fi
VERSION
=
$1
MAJOR
=
${
1
%.*
}
REST
=
${
1
##*.
}
MAJOR
=
${
VERSION
%.*
}
REST
=
${
VERSION
##*.
}
MINOR
=
${
REST
%%[a-z]*
}
MICRO
=
`
echo
${
REST
}
|
sed
's/^[0-9]*//g'
`
MICROA
=
`
echo
${
MICRO
}
|
sed
's/[^a-z]//g'
`
...
...
@@ -28,7 +28,6 @@ MICROB=`echo ${MICRO} | sed 's/[a-z]//g'`
BRANCH
=
$2
OPTION
=
$3
BUILDDIR
=
"/tmp/mahara/tarballs"
#BUILDDIR="/home/richard/foobar44/mahara/tarballs"
CURRENTDIR
=
"
`
pwd
`
"
SCRIPTDIR
=
$(
readlink
-f
--
"
${
0
%/*
}
"
)
...
...
@@ -123,11 +122,11 @@ git tag -s ${RELEASETAG} -m "$RELEASE release"
# Create tarballs
echo
"Creating mahara-
${
RELEASE
}
.tar.gz"
git archive
--format
=
tar
${
RELEASETAG
}
|
gzip
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.gz
git archive
--format
=
tar
--prefix
=
mahara-
${
VERSION
}
/
${
RELEASETAG
}
|
gzip
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.gz
echo
"Creating mahara-
${
RELEASE
}
.tar.bz2"
git archive
--format
=
tar
${
RELEASETAG
}
| bzip2
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.bz2
git archive
--format
=
tar
--prefix
=
mahara-
${
VERSION
}
/
${
RELEASETAG
}
| bzip2
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.bz2
echo
"Creating mahara-
${
RELEASE
}
.zip"
git archive
--format
=
zip
-9
${
RELEASETAG
}
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.zip
git archive
--format
=
zip
-
-prefix
=
mahara-
${
VERSION
}
/
-
9
${
RELEASETAG
}
>
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.zip
...
...
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