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
+3 -3
View File
@@ -24,7 +24,7 @@ def make():
def install(): def install():
''' FIXME: Düzgün hale getirilecek ''' ''' FIXME: Düzgün hale getirilecek '''
''' {D} = /var/tmp/pisi/ _paket_adı_ /image/ ''' ''' {D} = /var/tmp/pisi/ _paket_adı_ /image/ '''
install_string = 'make prefix={D}/usr \ install_string = 'make prefix={D}/usr \
datadir={D}/usr/share \ datadir={D}/usr/share \
infodir={D}/usr/share/info \ infodir={D}/usr/share/info \
@@ -32,5 +32,5 @@ def install():
mandir={D}/usr/share/man \ mandir={D}/usr/share/man \
sysconfdir={D}/etc \ sysconfdir={D}/etc \
install' 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' ))
+5 -8
View File
@@ -1,12 +1,9 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os, string, re, shutil import os, string, re, shutil, pisiconfig
from shell import * from shell import *
sys.path.append('..')
import pisiconfig
def gnuconfig_findnewest(): def gnuconfig_findnewest():
''' find the newest config.* file according to timestamp and return it ''' ''' 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] ) return os.path.dirname( newer_location.popitem()[0] )
def gnuconfig_update( package_name ): def gnuconfig_update():
''' copy newest config.* onto source's ''' ''' copy newest config.* onto source's '''
newer_location = gnuconfig_findnewest() newer_location = gnuconfig_findnewest()
try: try:
shutil.copyfile( newer_location + '/config.sub', pisiconfig.tmp_dir + '/' + package_name + '/build/config.sub' ) shutil.copyfile( newer_location + '/config.sub', os.getcwd() + '/config.sub' )
shutil.copyfile( newer_location + '/config.guess', pisiconfig.tmp_dir + '/' + package_name + '/build/config.guess' ) shutil.copyfile( newer_location + '/config.guess', os.getcwd() + '/config.guess' )
except IOError: except IOError:
print 'Hata mata...' print 'Hata mata...'
sys.exit() sys.exit()
+5 -3
View File
@@ -8,12 +8,14 @@ from autotools import *
sys.path.append('..') sys.path.append('..')
import pisiconfig 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' ) os.chdir( pisiconfig.tmp_dir + '/' + package_name + '/build' )
gnuconfig_update( package_name ) gnuconfig_update()
libtoolize() libtoolize()
configure( '--with-nls' ) configure( '--with-nls' )
make() make()
+1 -4
View File
@@ -1,10 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os,sys import os,sys, pisiconfig
sys.path.append('..')
import pisiconfig
def libtoolize(): def libtoolize():
''' FIXME: Düzgün hale getirilecek ''' ''' FIXME: Düzgün hale getirilecek '''