* [gentoo-commits] proj/ebuildgen:master commit in: ebuildgen/
@ 2011-08-15 17:58 Sebastian Parborg
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Parborg @ 2011-08-15 17:58 UTC (permalink / raw
To: gentoo-commits
commit: cf0f38b43cc328a7b6e60d4df3e7d0e1a564c7ea
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Mon Aug 15 17:19:27 2011 +0000
Commit: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
CommitDate: Mon Aug 15 17:19:27 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ebuildgen.git;a=commit;h=cf0f38b4
Declare EAPI before you inherit something!
---
ebuildgen/ebuildoutput.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ebuildgen/ebuildoutput.py b/ebuildgen/ebuildoutput.py
index a8ca3a6..dd212e0 100644
--- a/ebuildgen/ebuildoutput.py
+++ b/ebuildgen/ebuildoutput.py
@@ -57,15 +57,15 @@ def outputebuild(iuse,deps,usedeps,dltype,adress,installmethod):
'# Copyright 1999-' + strftime("%Y") + ' Gentoo Foundation',
'# Distributed under the terms of the GNU General Public License v2',
'# $Header: $',
- ''
+ '',
+ 'EAPI=3',
+ '',
]
inheritstr = 'inherit ' + eclass[dltype] + ' autotools'
text.append(inheritstr)
text += [
'',
- 'EAPI=3',
- '',
'DESCRIPTION=""',
'HOMEPAGE=""'
]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/ebuildgen:master commit in: ebuildgen/
@ 2011-08-15 17:58 Sebastian Parborg
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Parborg @ 2011-08-15 17:58 UTC (permalink / raw
To: gentoo-commits
commit: 724a5a4c1a5b7bd8905b118cfc0bb0835cf37726
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Mon Aug 15 17:53:29 2011 +0000
Commit: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
CommitDate: Mon Aug 15 17:53:29 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ebuildgen.git;a=commit;h=724a5a4c
Forgot to rename .dir to .url
---
ebuildgen/cli.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ebuildgen/cli.py b/ebuildgen/cli.py
index 6457853..3c456a5 100755
--- a/ebuildgen/cli.py
+++ b/ebuildgen/cli.py
@@ -33,24 +33,24 @@ def cli():
args = parser.parse_args()
- #print(args.dir)
+ #print(args.url)
#print(args.types)
#inclst is a list of includes. First in it is global then local.
if args.svn:
- getsourcecode(args.dir,"svn")
+ getsourcecode(args.url,"svn")
srcdir = "/tmp/ebuildgen/curproj"
dltype = "svn"
elif args.git:
- getsourcecode(args.dir,"git")
+ getsourcecode(args.url,"git")
srcdir = "/tmp/ebuildgen/curproj"
dltype = "git"
elif args.hg:
- getsourcecode(args.dir,"hg")
+ getsourcecode(args.url,"hg")
srcdir = "/tmp/ebuildgen/curproj"
dltype = "hg"
else:
- srcdir = args.dir
+ srcdir = args.url
dltype = "www"
(iuse,inclst,useargs) = scanfiles.scanproject(srcdir,"autotools")
@@ -84,7 +84,7 @@ def cli():
#print(usedeps)
#print(iuse)
- ebuildoutput.genebuild(iuse,gpackages,usedeps,dltype,args.dir,targets,binaries)
+ ebuildoutput.genebuild(iuse,gpackages,usedeps,dltype,args.url,targets,binaries)
if args.ginc == args.linc == args.ifdef == args.quiet == False:
print(inclst)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/ebuildgen:master commit in: ebuildgen/
@ 2011-08-16 20:43 Sebastian Parborg
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Parborg @ 2011-08-16 20:43 UTC (permalink / raw
To: gentoo-commits
commit: 7c6270afa89a33873593e7571089bada260a1abd
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Tue Aug 16 20:42:18 2011 +0000
Commit: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
CommitDate: Tue Aug 16 20:42:18 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ebuildgen.git;a=commit;h=7c6270af
Remove the scm dir if it exists already
---
ebuildgen/scmprojects.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ebuildgen/scmprojects.py b/ebuildgen/scmprojects.py
index 7310c0b..ae1ecfb 100644
--- a/ebuildgen/scmprojects.py
+++ b/ebuildgen/scmprojects.py
@@ -1,5 +1,7 @@
from subprocess import call
import sys
+import glob
+import shutil
cmdlineget = {
"svn" : "svn checkout ",
@@ -15,6 +17,10 @@ def getsourcecode(adress,repotype):
"""
callstr = cmdlineget[repotype]
+ if glob.glob("/tmp/ebuildgen/curproj"):
+ #this is might not be the best solution
+ shutil.rmtree("/tmp/ebuildgen/curproj")
+
try:
retcode = call(callstr + adress + " /tmp/ebuildgen/curproj",shell=True)
if retcode < 0:
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/ebuildgen:master commit in: ebuildgen/
@ 2011-08-17 11:01 Sebastian Parborg
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Parborg @ 2011-08-17 11:01 UTC (permalink / raw
To: gentoo-commits
commit: 01df95088ec75694548383f66eccd946d2cd236c
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Wed Aug 17 11:00:13 2011 +0000
Commit: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
CommitDate: Wed Aug 17 11:00:13 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ebuildgen.git;a=commit;h=01df9508
Commented out unused flags from the cli help message
---
ebuildgen/cli.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ebuildgen/cli.py b/ebuildgen/cli.py
index 3c456a5..c4c6026 100755
--- a/ebuildgen/cli.py
+++ b/ebuildgen/cli.py
@@ -12,9 +12,9 @@ def cli():
epilog="Example: genebuild --svn <url>")
parser.add_argument("url")
- parser.add_argument("-t", "--types", metavar="filetype", nargs="+",
- default=[".c",".cpp",".h"],
- help="what filetypes it should scan")
+ #parser.add_argument("-t", "--types", metavar="filetype", nargs="+",
+ # default=[".c",".cpp",".h"],
+ # help="what filetypes it should scan")
parser.add_argument("-g", "--ginc", action="store_true",
help="print global includes")
parser.add_argument("-l", "--linc", action="store_true",
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-17 11:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 17:58 [gentoo-commits] proj/ebuildgen:master commit in: ebuildgen/ Sebastian Parborg
-- strict thread matches above, loose matches on Subject: below --
2011-08-15 17:58 Sebastian Parborg
2011-08-16 20:43 Sebastian Parborg
2011-08-17 11:01 Sebastian Parborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox