[sisyphus] from gnomeprint-2.0 to gnomeprint-2.2

Alexey V. Lubimov =?iso-8859-1?q?avl_=CE=C1_cad=2Eru?=
Пн Мар 3 22:01:04 MSK 2003


Цепочка замен для практически автоматического перевода приложения с libgnomeprint(ui)  2.0 на 2.2

perl -pi -e "s|libgnomeprint-2.0|libgnomeprint-2.2|g" configure
perl -pi -e "s|libgnomeprintui-2.0|libgnomeprintui-2.2|g" configure

perl -pi -e "s|libgnomeprint/gnome-print-master.h|libgnomeprint/gnome-print-job.h|g" src/*.c
perl -pi -e "s|libgnomeprint/gnome-print-master.h|libgnomeprint/gnome-print-job.h|g" src/*.h

perl  -pi -e "s|libgnomeprintui/gnome-print-master-preview.h|libgnomeprintui/gnome-print-job-preview.h|g" src/*.c
perl  -pi -e "s|libgnomeprintui/gnome-print-master-preview.h|libgnomeprintui/gnome-print-job-preview.h|g" src/*.h

perl  -pi -e "s|libgnomeprintui/gnome-printer-dialog.h|libgnomeprintui/gnome-print-dialog.h|g" src/*.h
perl  -pi -e "s|libgnomeprintui/gnome-printer-dialog.h|libgnomeprintui/gnome-print-dialog.h|g" src/*.c

perl  -pi -e "s|gnome_print_master_close |gnome_print_job_close |g" src/*.h
perl  -pi -e "s|gnome_print_master_close |gnome_print_job_close |g" src/*.c

perl  -pi -e "s|GnomePrintMaster |GnomePrintJob |g" src/*.h
perl  -pi -e "s|GnomePrintMaster |GnomePrintJob |g" src/*.c


perl  -pi -e "s|gnome_print_master_new.*\(\)|gnome_print_job_new \(NULL\)|g" src/*.h
perl  -pi -e "s|gnome_print_master_new.*\(\)|gnome_print_job_new \(NULL\)|g" src/*.c

perl  -pi -e "s|gnome_print_master_new_from_config|gnome_print_job_new|g" src/*.h
perl  -pi -e "s|gnome_print_master_new_from_config|gnome_print_job_new|g" src/*.c

perl  -pi -e "s|gnome_print_master_print |gnome_print_job_print |g" src/*.h
perl  -pi -e "s|gnome_print_master_print |gnome_print_job_print |g" src/*.c


perl  -pi -e "s|gnome_print_master_get_context |gnome_print_job_get_context |g" src/*.h
perl  -pi -e "s|gnome_print_master_get_context |gnome_print_job_get_context |g" src/*.c


perl  -pi -e "s|gnome_print_master_get_config |gnome_print_job_get_config |g" src/*.h
perl  -pi -e "s|gnome_print_master_get_config |gnome_print_job_get_config |g" src/*.c

perl  -pi -e "s|gnome_print_master_preview_new |gnome_print_job_preview_new |g" src/*.h
perl  -pi -e "s|gnome_print_master_preview_new |gnome_print_job_preview_new |g" src/*.c

perl  -pi -e "s|gnome_printer_selection_new |gnome_printer_selector_new |g" src/*.h
perl  -pi -e "s|gnome_printer_selection_new |gnome_printer_selector_new |g" src/*.c

perl  -pi -e "s|gnome_printer_selection_get_config |gnome_printer_selector_get_config |g" src/*.h
perl  -pi -e "s|gnome_printer_selection_get_config |gnome_printer_selector_get_config |g" src/*.c


Это не все возможные замены. Но обычно этого хватает.


-- 
С уважением, Алексей Любимов avl на cad.ru



Подробная информация о списке рассылки Sisyphus