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

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

Private support, tools and test files.

  • 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;charset=UTF-8
File size: 1.3 KB
Line 
1#!/bin/zsh
2############################################################## {{{1 ##########
3#   $Author: krischik@macports.org $
4#   $Revision: 93582 $
5#   $Date: 2012-05-27 15:53:43 +0000 (Sun, 27 May 2012) $
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
18alias svn=/opt/local/bin/svn
19
20pushd "/Work/MacPorts/krischik/android"
21    svn commit -m"New Startup bundles for android."
22popd
23
24pushd "/var/tmp"
25    svn export ${Repository}/users/${User}/${Port}
26    pushd "${Port}"
27        for I in "appbundles"; do
28            mv --verbose ${I} ${I}-r${in_Version}
29            tar --verbose --create --gzip                                               \
30                --file="${Port}-${I}-r${in_Version}.tar.gz"                             \
31                ${I}-r${in_Version}
32            svn import                                                                  \
33                -m"Add distfile for ${Port}"                                            \
34                "${Port}-${I}-r${in_Version}.tar.gz"                                    \
35                "${Repository}/distfiles/${Port}/${Port}-${I}-r${in_Version}.tar.gz"
36        done; unset I
37    popd
38    rm --verbose --recursive "${Port}"
39popd
40
41############################################################ {{{1 ###########
42# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
43# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Note: See TracBrowser for help on using the repository browser.