Biraz temizlik o kadar, ciddi birşey yok...

This commit is contained in:
S.Çağlar Onur
2005-06-11 17:38:30 +00:00
parent b1f3c57b3b
commit 66b188de90
4 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -33,4 +33,4 @@ def install():
sysconfdir={D}/etc \
install'
os.system( install_string.replace( '{D}', os.path.dirname( os.getcwd() + '/image' )))
os.system( install_string.replace( '{D}', os.path.dirname( os.getcwd()) + '/image' ))
+4 -7
View File
@@ -1,12 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, string, re, shutil
import os, string, re, shutil, pisiconfig
from shell import *
sys.path.append('..')
import pisiconfig
def gnuconfig_findnewest():
''' find the newest config.* file according to timestamp and return it '''
@@ -23,14 +20,14 @@ def gnuconfig_findnewest():
return os.path.dirname( newer_location.popitem()[0] )
def gnuconfig_update( package_name ):
def gnuconfig_update():
''' copy newest config.* onto source's '''
newer_location = gnuconfig_findnewest()
try:
shutil.copyfile( newer_location + '/config.sub', pisiconfig.tmp_dir + '/' + package_name + '/build/config.sub' )
shutil.copyfile( newer_location + '/config.guess', pisiconfig.tmp_dir + '/' + package_name + '/build/config.guess' )
shutil.copyfile( newer_location + '/config.sub', os.getcwd() + '/config.sub' )
shutil.copyfile( newer_location + '/config.guess', os.getcwd() + '/config.guess' )
except IOError:
print 'Hata mata...'
sys.exit()
+5 -3
View File
@@ -8,12 +8,14 @@ from autotools import *
sys.path.append('..')
import pisiconfig
if __name__ == "__main__":
package_name = 'popt-1.7'
if __name__ == "__main__":
''' WILLBE: Unpack module will pass the package name to action script '''
package_name = 'popt-1.7'
''' WILLBE: pisi-build call action script after entered the build directory '''
os.chdir( pisiconfig.tmp_dir + '/' + package_name + '/build' )
gnuconfig_update( package_name )
gnuconfig_update()
libtoolize()
configure( '--with-nls' )
make()
+1 -4
View File
@@ -1,10 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os,sys
sys.path.append('..')
import pisiconfig
import os,sys, pisiconfig
def libtoolize():
''' FIXME: Düzgün hale getirilecek '''