File: sedpoxml

package info (click to toggle)
debian-reference 2.131
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 33,684 kB
  • sloc: python: 586; makefile: 574; sh: 528; sed: 80
file content (16 lines) | stat: -rwxr-xr-x 738 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# This is conversion script
#
make nowrap
# /sbin/     -> /usr/sbin/
#sed -i -e 's,\([> ]\)/sbin,\1/usr/sbin,g' rawxml/[019]*.rawxml po/*.po
# /bin/      -> /usr/bin/
#sed -i -e 's,\([> ]\)/bin,\1/usr/bin,g'   rawxml/[019]*.rawxml po/*.po
# change of package README.policy-rc.d
#sed -i -e 's,sysv-rc/README.policy-rc.d,init-system-helpers/README.policy-rc.d,g'   rawxml/[019]*.rawxml po/*.po po/debian-reference.pot

# change path to /etc/systemd/ with vi
vi '+argdo %s,<literal>\/etc\/init\.d\/<\/literal>,<literal>\/etc\/systemd\/<\/literal>,gec | update' '+q' rawxml/[019]*.rawxml po/*.po
make wrap

# If changes to msgid side is needed for typo fix, consider to use some thing along: sed -i -e '/^msgid/s,...,...,g' po/*.po