Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (31 sloc) 0.964 kb
b9d5d25
andreafrancia authored
1 #!/bin/sh
a8308b6 Now empty-trash remove the directories too.
andreafrancia authored
2
e8a77ea Revision can be specified during make-dist.sh invokcation.
andreafrancia authored
3 base_version='0.1.10'
5c7a81f
andreafrancia authored
4
9537846 Removed creation of rpm and deb files.
andreafrancia authored
5 function inject_version() {
6 file="$1"
7 version="$2"
8 sed --in-place s/version=\'svn\'/version=\'"$version"\'/ "$file"
9 }
a8308b6 Now empty-trash remove the directories too.
andreafrancia authored
10
9537846 Removed creation of rpm and deb files.
andreafrancia authored
11 set -e
05632ae Now make-dist.bash remove any previous existing dist directory
andreafrancia authored
12 rm -Rf dist
9537846 Removed creation of rpm and deb files.
andreafrancia authored
13 mkdir dist
5c7a81f
andreafrancia authored
14
e8a77ea Revision can be specified during make-dist.sh invokcation.
andreafrancia authored
15 requested_revision="$1"
16 # calc version
17 if [ -z "$requested_revision" ]; then
18 version="$base_version.r$(svnversion)"
19 else
20 version="$base_version.r$requested_revision"
21 fi
22
9537846 Removed creation of rpm and deb files.
andreafrancia authored
23 package_name="trash-cli-$version"
b8b96ec Now makedist.bash creates the tarball in the dist directory
andreafrancia authored
24 tarball=dist/"$package_name".tar.gz
3f5e6d9
andreafrancia authored
25
9537846 Removed creation of rpm and deb files.
andreafrancia authored
26 # prepare sources
e8a77ea Revision can be specified during make-dist.sh invokcation.
andreafrancia authored
27 if [ -z "$requested_revision" ]; then
28 svn export . dist/"$package_name"
29 else
30 svn export -r "$requested_revision" . dist/"$package_name"
31 fi
32
d40b100 Fixed inject_version() function.
andreafrancia authored
33 inject_version dist/"$package_name"/src/libtrash/__init__.py "$version"
5a80d3d Added files for debian package.
andreafrancia authored
34
9537846 Removed creation of rpm and deb files.
andreafrancia authored
35 # create tarball of sources
36 tar -C dist -cvz -f "$tarball" "$package_name"
a8308b6 Now empty-trash remove the directories too.
andreafrancia authored
37 rsync -avP -e ssh "$tarball" andreafrancia@frs.sourceforge.net:uploads/
5c7a81f
andreafrancia authored
38
a8308b6 Now empty-trash remove the directories too.
andreafrancia authored
39 echo "Go to https://sourceforge.net/project/admin/newrelease.php?package_id=179459&group_id=87144"
5c7a81f
andreafrancia authored
40
3f5e6d9
andreafrancia authored
41 echo "New release name: trash-$version"
5c7a81f
andreafrancia authored
42
Something went wrong with that request. Please try again.