Date: Saturday, July 5, 2014 @ 05:51:46
  Author: fyan
Revision: 115010

archrelease: copy trunk to community-any

Added:
  nopaste/repos/community-any/PKGBUILD
    (from rev 115009, nopaste/trunk/PKGBUILD)
  nopaste/repos/community-any/nopaste
    (from rev 115009, nopaste/trunk/nopaste)
Deleted:
  nopaste/repos/community-any/PKGBUILD
  nopaste/repos/community-any/nopaste

----------+
 PKGBUILD |   34 ++++-----
 nopaste  |  208 ++++++++++++++++++++++++++++++-------------------------------
 2 files changed, 121 insertions(+), 121 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2014-07-05 03:51:24 UTC (rev 115009)
+++ PKGBUILD    2014-07-05 03:51:46 UTC (rev 115010)
@@ -1,17 +0,0 @@
-# $Id$
-# Maintainer: Sven-Hendrik Haase <[email protected]>
-# Contributor: H.Gökhan SARI <[email protected]>
-pkgname=nopaste
-pkgver=0.1
-pkgrel=3
-pkgdesc="A simple paste script for pastie.org"
-arch=(any)
-url="http://www.pastie.org";
-license=('GPL')
-depends=('python2')
-source=('nopaste')
-md5sums=('e7bdbe9f9363c72a0fe0827aa0568b67')
-
-build() {
-  install -m755 -D $srcdir/nopaste $pkgdir/usr/bin/nopaste
-}

Copied: nopaste/repos/community-any/PKGBUILD (from rev 115009, 
nopaste/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2014-07-05 03:51:46 UTC (rev 115010)
@@ -0,0 +1,17 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: H.Gökhan SARI <[email protected]>
+pkgname=nopaste
+pkgver=0.1
+pkgrel=4
+pkgdesc="A simple paste script for pastie.org"
+arch=(any)
+url="http://www.pastie.org";
+license=('GPL')
+depends=('python2')
+source=('nopaste')
+md5sums=('e7bdbe9f9363c72a0fe0827aa0568b67')
+
+package() {
+  install -m755 -D $srcdir/nopaste $pkgdir/usr/bin/nopaste
+}

Deleted: nopaste
===================================================================
--- nopaste     2014-07-05 03:51:24 UTC (rev 115009)
+++ nopaste     2014-07-05 03:51:46 UTC (rev 115010)
@@ -1,104 +0,0 @@
-#!/usr/bin/python2
-# Python API for pastie.org and commandline paster
-# (c) 2009 Hector Martin <[email protected]>
-# Released under the terms of the GNU General Public License, version 2 or 3
-
-import urllib
-
-DEFAULT_NAME=None
-
-class Pastie:
-       def __init__(self, body='', parser=None, private=True, name = None):
-               self.body = body
-               self.parser = parser
-               self.private = private
-               self.name = name
-
-       def submit(self):
-               form = {
-                       "paste[parser]": self.parser or 'plain_text',
-                       "paste[body]": self.body,
-                       "paste[authorization]": 'burger',
-                       "paste[restricted]": self.private and '1' or '0'
-               }
-               if self.name is not None:
-                       form['paste[display_name]'] = self.name
-               f = urllib.urlopen("http://pastie.org/pastes";, 
urllib.urlencode(form))
-               f.close()
-               return f.geturl()
-
-if __name__ == '__main__':
-       import sys, os
-       from optparse import OptionParser
-       
-       extmap = {
-               'as': 'actionscript',
-               'c': 'c++',
-               'cpp': 'c++',
-               'c++': 'c++',
-               'cxx': 'c++',
-               'cc': 'c++',
-               'h': 'c++',
-               'hpp': 'c++',
-               'h++': 'c++',
-               'hxx': 'c++',
-               'hc': 'c++',
-               'css': 'css',
-               'diff': 'diff',
-               'patch': 'diff',
-               'erb': 'html_rails',
-               'rhtml': 'html_rails',
-               'html': 'html',
-               'htm': 'html',
-               'java': 'java',
-               'js': 'javascript',
-               'm': 'objective-c++',
-               'pas': 'pascal',
-               'pl': 'perl',
-               'php': 'php',
-               'phtml': 'php',
-               'php3': 'php',
-               'php4': 'php',
-               'php5': 'php',
-               'py': 'python',
-               'rb': 'ruby',
-               'sh': 'bash',
-               'sql': 'sql',
-               'yml': 'yaml'
-       }
-       
-       pastie = Pastie(body='', name=DEFAULT_NAME)
-       parser = OptionParser()
-       parser.add_option("-p", "--public", dest='private', 
action='store_false', help="make pastie public")
-       parser.add_option("--private", dest='private', action='store_true', 
help="make pastie private (default)")
-       parser.add_option("-n", "--name", dest='name', action='store', 
type='string', help="author of the pastie", metavar="NAME")
-       parser.add_option("-t", "--type", dest='parser', action='store', 
type='string', help="file type (parser)", metavar="PARSER")
-
-       args = parser.parse_args(sys.argv[1:], pastie)[1]
-       
-       if pastie.parser and '.' in pastie.parser:
-               try:
-                       pastie.parser = 
extmap[pastie.parser.split('.')[-1].lower()]
-               except:
-                       pastie.parser = None
-       
-       if len(args) == 0:
-               pastie.body = sys.stdin.read()
-       else:
-               for name in args:
-                       if name == '-':
-                               body = sys.stdin.read()
-                               name = 'stdin'
-                       else:
-                               body = open(name, 'r').read()
-                               name = os.path.basename(name)
-                       try:
-                               parser = extmap[name.split('.')[-1].lower()]
-                       except:
-                               parser = 'plain_text'
-                       pastie.body += '## %s [%s]\n'%(name, pastie.parser or 
parser)
-                       pastie.body += body
-                       if pastie.body[-1] != '\n':
-                               pastie.body += '\n'
-       print pastie.submit()
-

Copied: nopaste/repos/community-any/nopaste (from rev 115009, 
nopaste/trunk/nopaste)
===================================================================
--- nopaste                             (rev 0)
+++ nopaste     2014-07-05 03:51:46 UTC (rev 115010)
@@ -0,0 +1,104 @@
+#!/usr/bin/python2
+# Python API for pastie.org and commandline paster
+# (c) 2009 Hector Martin <[email protected]>
+# Released under the terms of the GNU General Public License, version 2 or 3
+
+import urllib
+
+DEFAULT_NAME=None
+
+class Pastie:
+       def __init__(self, body='', parser=None, private=True, name = None):
+               self.body = body
+               self.parser = parser
+               self.private = private
+               self.name = name
+
+       def submit(self):
+               form = {
+                       "paste[parser]": self.parser or 'plain_text',
+                       "paste[body]": self.body,
+                       "paste[authorization]": 'burger',
+                       "paste[restricted]": self.private and '1' or '0'
+               }
+               if self.name is not None:
+                       form['paste[display_name]'] = self.name
+               f = urllib.urlopen("http://pastie.org/pastes";, 
urllib.urlencode(form))
+               f.close()
+               return f.geturl()
+
+if __name__ == '__main__':
+       import sys, os
+       from optparse import OptionParser
+       
+       extmap = {
+               'as': 'actionscript',
+               'c': 'c++',
+               'cpp': 'c++',
+               'c++': 'c++',
+               'cxx': 'c++',
+               'cc': 'c++',
+               'h': 'c++',
+               'hpp': 'c++',
+               'h++': 'c++',
+               'hxx': 'c++',
+               'hc': 'c++',
+               'css': 'css',
+               'diff': 'diff',
+               'patch': 'diff',
+               'erb': 'html_rails',
+               'rhtml': 'html_rails',
+               'html': 'html',
+               'htm': 'html',
+               'java': 'java',
+               'js': 'javascript',
+               'm': 'objective-c++',
+               'pas': 'pascal',
+               'pl': 'perl',
+               'php': 'php',
+               'phtml': 'php',
+               'php3': 'php',
+               'php4': 'php',
+               'php5': 'php',
+               'py': 'python',
+               'rb': 'ruby',
+               'sh': 'bash',
+               'sql': 'sql',
+               'yml': 'yaml'
+       }
+       
+       pastie = Pastie(body='', name=DEFAULT_NAME)
+       parser = OptionParser()
+       parser.add_option("-p", "--public", dest='private', 
action='store_false', help="make pastie public")
+       parser.add_option("--private", dest='private', action='store_true', 
help="make pastie private (default)")
+       parser.add_option("-n", "--name", dest='name', action='store', 
type='string', help="author of the pastie", metavar="NAME")
+       parser.add_option("-t", "--type", dest='parser', action='store', 
type='string', help="file type (parser)", metavar="PARSER")
+
+       args = parser.parse_args(sys.argv[1:], pastie)[1]
+       
+       if pastie.parser and '.' in pastie.parser:
+               try:
+                       pastie.parser = 
extmap[pastie.parser.split('.')[-1].lower()]
+               except:
+                       pastie.parser = None
+       
+       if len(args) == 0:
+               pastie.body = sys.stdin.read()
+       else:
+               for name in args:
+                       if name == '-':
+                               body = sys.stdin.read()
+                               name = 'stdin'
+                       else:
+                               body = open(name, 'r').read()
+                               name = os.path.basename(name)
+                       try:
+                               parser = extmap[name.split('.')[-1].lower()]
+                       except:
+                               parser = 'plain_text'
+                       pastie.body += '## %s [%s]\n'%(name, pastie.parser or 
parser)
+                       pastie.body += body
+                       if pastie.body[-1] != '\n':
+                               pastie.body += '\n'
+       print pastie.submit()
+

Reply via email to