summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2012-06-12 10:25:53 -0700
committerBrian C. Lane <bcl@redhat.com>2012-06-12 15:29:55 -0700
commit9f7d27ee4da57afdee8e99b30fb5578603f0a578 (patch)
treecf75ffed09dfd80ee17900804a7c75784581f1ad /scripts
parentedad0eb1504bde987d2bda7d8ca225266629b81d (diff)
downloadanaconda-9f7d27ee4da57afdee8e99b30fb5578603f0a578.tar.gz
anaconda-9f7d27ee4da57afdee8e99b30fb5578603f0a578.tar.xz
anaconda-9f7d27ee4da57afdee8e99b30fb5578603f0a578.zip
makeupdates: copy .ui into /tmp/updates/ui/
The ui update files should be in /tmp/updates/ui/<dir> where dir is the directory specified in the uiFile. eg. hubs, spokes
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/makeupdates14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/makeupdates b/scripts/makeupdates
index e0aaa39ed..e709938ae 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -101,6 +101,13 @@ def copyUpdatedFiles(tag, updates, cwd):
return lst
+ def install_to_dir(fname, relpath):
+ sys.stdout.write("Including %s\n" % fname)
+ outdir = os.path.join(updates, relpath)
+ if not os.path.isdir(outdir):
+ os.makedirs(outdir)
+ shutil.copy2(file, outdir)
+
subdirs = []
lines = doGitDiff(tag)
@@ -121,7 +128,12 @@ def copyUpdatedFiles(tag, updates, cwd):
file.endswith('.sh') or file == 'configure.ac':
continue
- if file.startswith('pyanaconda/'):
+ if file.endswith('.ui'):
+ # UI files should go under ui/<dir> where dir is the directory
+ # above the file.ui
+ uidir = os.path.dirname(file).split(os.path.sep)[-1]
+ install_to_dir(file, os.path.join("ui",uidir))
+ elif file.startswith('pyanaconda/'):
sys.stdout.write("Including %s\n" % (file,))
update_filename = os.path.realpath(os.path.join(updates, file))
update_dir = os.path.dirname(update_filename)