ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Alexey V. Lubimov" <avl@cad.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] from gnomeprint-2.0 to gnomeprint-2.2
Date: Mon, 3 Mar 2003 22:01:04 +0300
Message-ID: <20030303220104.2ceefd1a.avl@cad.ru> (raw)

Цепочка замен для практически автоматического перевода приложения с 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


                 reply	other threads:[~2003-03-03 19:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030303220104.2ceefd1a.avl@cad.ru \
    --to=avl@cad.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git