source: users/krischik/android/Upload.command @ 75854

Last change on this file since 75854 was 75854, checked in by krischik@…, 10 years ago

New Startup bundles for android.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision HeadURL
  • Property svn:mime-type set to text/x-shellscript
File size: 1.2 KB
Line 
1#!/bin/zsh
2############################################################## {{{1 ##########
3#   $Author: krischik@macports.org $
4#   $Revision: 75854 $
5#   $Date: 2011-02-10 19:41:36 +0000 (Thu, 10 Feb 2011) $
6#   $HeadURL: users/krischik/android/Upload.command $
7############################################################## }}}1 ##########
8
9setopt Err_Exit;
10
11typeset -r in_Version=${1}
12typeset -r Repository=http://svn.macports.org/repository/macports
13typeset -r User=krischik
14typeset -r Port=android
15
16alias mv=/opt/local/bin/gmv
17alias rm=/opt/local/bin/grm
18
19pushd "/Work/MacPorts/krischik/android"
20    svn commit -m"New Startup bundles for android."
21popd
22
23pushd "/var/tmp"
24    svn export ${Repository}/users/${User}/${Port}
25    pushd "${Port}"
26        for I in "appbundles"; do
27            mv --verbose ${I} ${I}-r${in_Version}
28            tar --verbose --create --gzip                                               \
29                --file="${Port}-${I}-r${in_Version}.tar.gz"                             \
30                ${I}-r${in_Version}
31            svn import                                                                  \
32                -m"Add distfile for ${Port}"                                            \
33                "${Port}-${I}-r${in_Version}.tar.gz"                                    \
34                "${Repository}/distfiles/${Port}/${Port}-${I}-r${in_Version}.tar.gz"
35        done; unset I
36    popd
37    rm --verbose --recursive "${Port}"
38popd
39
40############################################################ {{{1 ###########
41# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
42# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Note: See TracBrowser for help on using the repository browser.