Remove scripts dir from tarballs.

Remove original CMakeLists.txt after patching it.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=908701
This commit is contained in:
Volker Lanz 2009-01-10 09:09:47 +00:00
parent 10b869ed3b
commit c2d04d4552
1 changed files with 20 additions and 15 deletions

View File

@ -28,11 +28,15 @@ class PartitionManagerApp < Application
end
def applyFixes(workingDir, outputDir)
puts "applying fixes for partition manager"
puts 'applying fixes for partition manager'
Dir.chdir "#{workingDir}/#{outputDir}"
return if !File.exists? 'doc'
puts 'removing scripts subdir...'
FileUtils.rm_rf 'scripts'
if File.exists? 'doc' then
puts 'patching CMakeLists.txt to build docs only with new kdelibs...'
FileUtils.mv('CMakeLists.txt', 'CMakeLists.txt.orig')
@ -56,5 +60,6 @@ END_OF_TEXT
newFile.close
end
end
end