| 1 | # .Sanitize for devo/opcodes. |
| 2 | |
| 3 | # Each directory to survive its way into a release will need a file |
| 4 | # like this one called "./.Sanitize". All keyword lines must exist, |
| 5 | # and must exist in the order specified by this file. Each directory |
| 6 | # in the tree will be processed, top down, in the following order. |
| 7 | |
| 8 | # Hash started lines like this one are comments and will be deleted |
| 9 | # before anything else is done. Blank lines will also be squashed |
| 10 | # out. |
| 11 | |
| 12 | # The lines between the "Do-first:" line and the "Things-to-keep:" |
| 13 | # line are executed as a /bin/sh shell script before anything else is |
| 14 | # done in this directory. |
| 15 | |
| 16 | Do-first: |
| 17 | |
| 18 | cygnus_files="cgen.sh cgen-asm.in cgen-dis.in cgen-opc.in" |
| 19 | |
| 20 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
| 21 | keep_these_too="${cygnus_files} ${keep_these_too}" |
| 22 | else |
| 23 | lose_these_too="${cygnus_files} ${lose_these_too}" |
| 24 | fi |
| 25 | |
| 26 | tic80_files="tic80-opc.c tic80-dis.c" |
| 27 | |
| 28 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
| 29 | keep_these_too="${tic80_files} ${keep_these_too}" |
| 30 | else |
| 31 | lose_these_too="${tic80_files} ${lose_these_too}" |
| 32 | fi |
| 33 | |
| 34 | sky_files="dvp-opc.c dvp-dis.c" |
| 35 | |
| 36 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
| 37 | keep_these_too="${sky_files} ${keep_these_too}" |
| 38 | else |
| 39 | lose_these_too="${sky_files} ${lose_these_too}" |
| 40 | fi |
| 41 | |
| 42 | # All files listed between the "Things-to-keep:" line and the |
| 43 | # "Files-to-sed:" line will be kept. All other files will be removed. |
| 44 | # Directories listed in this section will have their own Sanitize |
| 45 | # called. Directories not listed will be removed in their entirety |
| 46 | # with rm -rf. |
| 47 | |
| 48 | Things-to-keep: |
| 49 | |
| 50 | ChangeLog |
| 51 | Makefile.am |
| 52 | Makefile.in |
| 53 | acconfig.h |
| 54 | acinclude.m4 |
| 55 | aclocal.m4 |
| 56 | alpha-dis.c |
| 57 | alpha-opc.c |
| 58 | arc-dis.c |
| 59 | arc-opc.c |
| 60 | arm-dis.c |
| 61 | arm-opc.h |
| 62 | a29k-dis.c |
| 63 | cgen-asm.c |
| 64 | cgen-dis.c |
| 65 | cgen-opc.c |
| 66 | config.in |
| 67 | configure |
| 68 | configure.bat |
| 69 | configure.in |
| 70 | d10v-dis.c |
| 71 | d10v-opc.c |
| 72 | d30v-dis.c |
| 73 | d30v-opc.c |
| 74 | dep-in.sed |
| 75 | dis-buf.c |
| 76 | disassemble.c |
| 77 | fr30-asm.c |
| 78 | fr30-dis.c |
| 79 | fr30-opc.c |
| 80 | fr30-opc.h |
| 81 | h8300-dis.c |
| 82 | h8500-dis.c |
| 83 | h8500-opc.h |
| 84 | hppa-dis.c |
| 85 | i386-dis.c |
| 86 | i960-dis.c |
| 87 | i960c-asm.c |
| 88 | i960c-dis.c |
| 89 | i960c-opc.c |
| 90 | i960c-opc.h |
| 91 | m32r-asm.c |
| 92 | m32r-dis.c |
| 93 | m32r-opc.c |
| 94 | m32r-opc.h |
| 95 | m68k-dis.c |
| 96 | m68k-opc.c |
| 97 | m88k-dis.c |
| 98 | makefile.vms |
| 99 | mips-dis.c |
| 100 | mips-opc.c |
| 101 | mips16-opc.c |
| 102 | m10200-dis.c |
| 103 | m10200-opc.c |
| 104 | m10300-dis.c |
| 105 | m10300-opc.c |
| 106 | mpw-config.in |
| 107 | mpw-make.sed |
| 108 | ns32k-dis.c |
| 109 | opintl.h |
| 110 | po |
| 111 | ppc-dis.c |
| 112 | ppc-opc.c |
| 113 | sh-opc.h |
| 114 | sh-dis.c |
| 115 | sparc-dis.c |
| 116 | sparc-opc.c |
| 117 | stamp-h.in |
| 118 | sysdep.h |
| 119 | tic30-dis.c |
| 120 | vax-dis.c |
| 121 | w65-dis.c |
| 122 | w65-opc.h |
| 123 | v850-opc.c |
| 124 | v850-dis.c |
| 125 | z8k-dis.c |
| 126 | z8k-opc.h |
| 127 | z8kgen.c |
| 128 | |
| 129 | Things-to-lose: |
| 130 | |
| 131 | Do-last: |
| 132 | never_files="Makefile.am Makefile.in" |
| 133 | for i in $never_files ; do |
| 134 | if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then |
| 135 | if [ -n "${verbose}" ] ; then |
| 136 | echo Removing traces of \"cygnus-never\" from $i... |
| 137 | fi |
| 138 | cp $i new |
| 139 | sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/d' < $i > new |
| 140 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 141 | if [ -n "${verbose}" ] ; then |
| 142 | echo Caching $i in .Recover... |
| 143 | fi |
| 144 | mv $i .Recover |
| 145 | fi |
| 146 | mv new $i |
| 147 | fi |
| 148 | done |
| 149 | |
| 150 | cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure m10300-opc.c m10300-dis.c" |
| 151 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
| 152 | for i in $cygnus_files ; do |
| 153 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
| 154 | if [ -n "${verbose}" ] ; then |
| 155 | echo Keeping cygnus stuff in $i |
| 156 | fi |
| 157 | fi |
| 158 | done |
| 159 | else |
| 160 | for i in $cygnus_files ; do |
| 161 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
| 162 | if [ -n "${verbose}" ] ; then |
| 163 | echo Removing traces of \"cygnus\" from $i... |
| 164 | fi |
| 165 | cp $i new |
| 166 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new |
| 167 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 168 | if [ -n "${verbose}" ] ; then |
| 169 | echo Caching $i in .Recover... |
| 170 | fi |
| 171 | mv $i .Recover |
| 172 | fi |
| 173 | mv new $i |
| 174 | fi |
| 175 | done |
| 176 | fi |
| 177 | |
| 178 | v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c" |
| 179 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
| 180 | for i in $v850e_files ; do |
| 181 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then |
| 182 | if [ -n "${verbose}" ] ; then |
| 183 | echo Keeping v850e stuff in $i |
| 184 | fi |
| 185 | fi |
| 186 | done |
| 187 | else |
| 188 | for i in $v850e_files ; do |
| 189 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then |
| 190 | if [ -n "${verbose}" ] ; then |
| 191 | echo Removing traces of \"v850e\" from $i... |
| 192 | fi |
| 193 | cp $i new |
| 194 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new |
| 195 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 196 | if [ -n "${verbose}" ] ; then |
| 197 | echo Caching $i in .Recover... |
| 198 | fi |
| 199 | mv $i .Recover |
| 200 | fi |
| 201 | mv new $i |
| 202 | fi |
| 203 | done |
| 204 | fi |
| 205 | |
| 206 | |
| 207 | r5900_files="ChangeLog mips-opc.c mips-dis.c Makefile.am Makefile.in" |
| 208 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
| 209 | for i in $r5900_files ; do |
| 210 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then |
| 211 | if [ -n "${verbose}" ] ; then |
| 212 | echo Keeping r5900 stuff in $i |
| 213 | fi |
| 214 | fi |
| 215 | done |
| 216 | else |
| 217 | for i in $r5900_files ; do |
| 218 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then |
| 219 | if [ -n "${verbose}" ] ; then |
| 220 | echo Removing traces of \"r5900\" from $i... |
| 221 | fi |
| 222 | cp $i new |
| 223 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new |
| 224 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 225 | if [ -n "${verbose}" ] ; then |
| 226 | echo Caching $i in .Recover... |
| 227 | fi |
| 228 | mv $i .Recover |
| 229 | fi |
| 230 | mv new $i |
| 231 | fi |
| 232 | done |
| 233 | fi |
| 234 | |
| 235 | vr4320_files="ChangeLog mips-opc.c mips-dis.c" |
| 236 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then |
| 237 | for i in $vr4320_files ; do |
| 238 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then |
| 239 | if [ -n "${verbose}" ] ; then |
| 240 | echo Keeping vr4320 stuff in $i |
| 241 | fi |
| 242 | fi |
| 243 | done |
| 244 | else |
| 245 | for i in $vr4320_files ; do |
| 246 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then |
| 247 | if [ -n "${verbose}" ] ; then |
| 248 | echo Removing traces of \"vr4320\" from $i... |
| 249 | fi |
| 250 | cp $i new |
| 251 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new |
| 252 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 253 | if [ -n "${verbose}" ] ; then |
| 254 | echo Caching $i in .Recover... |
| 255 | fi |
| 256 | mv $i .Recover |
| 257 | fi |
| 258 | mv new $i |
| 259 | fi |
| 260 | done |
| 261 | fi |
| 262 | |
| 263 | vr4xxx_files="ChangeLog mips-opc.c mips-dis.c" |
| 264 | if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then |
| 265 | for i in $vr4xxx_files ; do |
| 266 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then |
| 267 | if [ -n "${verbose}" ] ; then |
| 268 | echo Keeping vr4xxx stuff in $i |
| 269 | fi |
| 270 | fi |
| 271 | done |
| 272 | else |
| 273 | for i in $vr4xxx_files ; do |
| 274 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then |
| 275 | if [ -n "${verbose}" ] ; then |
| 276 | echo Removing traces of \"vr4xxx\" from $i... |
| 277 | fi |
| 278 | cp $i new |
| 279 | sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new |
| 280 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 281 | if [ -n "${verbose}" ] ; then |
| 282 | echo Caching $i in .Recover... |
| 283 | fi |
| 284 | mv $i .Recover |
| 285 | fi |
| 286 | mv new $i |
| 287 | fi |
| 288 | done |
| 289 | fi |
| 290 | |
| 291 | cygnus_files="ChangeLog mips-opc.c mips-dis.c" |
| 292 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
| 293 | for i in $cygnus_files ; do |
| 294 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
| 295 | if [ -n "${verbose}" ] ; then |
| 296 | echo Keeping cygnus stuff in $i |
| 297 | fi |
| 298 | fi |
| 299 | done |
| 300 | else |
| 301 | for i in $cygnus_files ; do |
| 302 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
| 303 | if [ -n "${verbose}" ] ; then |
| 304 | echo Removing traces of \"cygnus\" from $i... |
| 305 | fi |
| 306 | cp $i new |
| 307 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new |
| 308 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 309 | if [ -n "${verbose}" ] ; then |
| 310 | echo Caching $i in .Recover... |
| 311 | fi |
| 312 | mv $i .Recover |
| 313 | fi |
| 314 | mv new $i |
| 315 | fi |
| 316 | done |
| 317 | fi |
| 318 | |
| 319 | tx19_files="ChangeLog mips16-opc.c mips-dis.c" |
| 320 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
| 321 | for i in $tx19_files ; do |
| 322 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then |
| 323 | if [ -n "${verbose}" ] ; then |
| 324 | echo Keeping tx19 stuff in $i |
| 325 | fi |
| 326 | fi |
| 327 | done |
| 328 | else |
| 329 | for i in $tx19_files ; do |
| 330 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then |
| 331 | if [ -n "${verbose}" ] ; then |
| 332 | echo Removing traces of \"tx19\" from $i... |
| 333 | fi |
| 334 | cp $i new |
| 335 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new |
| 336 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 337 | if [ -n "${verbose}" ] ; then |
| 338 | echo Caching $i in .Recover... |
| 339 | fi |
| 340 | mv $i .Recover |
| 341 | fi |
| 342 | mv new $i |
| 343 | fi |
| 344 | done |
| 345 | fi |
| 346 | |
| 347 | tx49_files="ChangeLog mips-opc.c mips-dis.c" |
| 348 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
| 349 | for i in $tx49_files ; do |
| 350 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then |
| 351 | if [ -n "${verbose}" ] ; then |
| 352 | echo Keeping tx49 stuff in $i |
| 353 | fi |
| 354 | fi |
| 355 | done |
| 356 | else |
| 357 | for i in $tx49_files ; do |
| 358 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then |
| 359 | if [ -n "${verbose}" ] ; then |
| 360 | echo Removing traces of \"tx49\" from $i... |
| 361 | fi |
| 362 | cp $i new |
| 363 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new |
| 364 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 365 | if [ -n "${verbose}" ] ; then |
| 366 | echo Caching $i in .Recover... |
| 367 | fi |
| 368 | mv $i .Recover |
| 369 | fi |
| 370 | mv new $i |
| 371 | fi |
| 372 | done |
| 373 | fi |
| 374 | |
| 375 | tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c" |
| 376 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
| 377 | for i in $tic80_files ; do |
| 378 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then |
| 379 | if [ -n "${verbose}" ] ; then |
| 380 | echo Keeping tic80 stuff in $i |
| 381 | fi |
| 382 | fi |
| 383 | done |
| 384 | else |
| 385 | for i in $tic80_files ; do |
| 386 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then |
| 387 | if [ -n "${verbose}" ] ; then |
| 388 | echo Removing traces of \"tic80\" from $i... |
| 389 | fi |
| 390 | cp $i new |
| 391 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new |
| 392 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 393 | if [ -n "${verbose}" ] ; then |
| 394 | echo Caching $i in .Recover... |
| 395 | fi |
| 396 | mv $i .Recover |
| 397 | fi |
| 398 | mv new $i |
| 399 | fi |
| 400 | done |
| 401 | fi |
| 402 | |
| 403 | coldfire_files="ChangeLog m68k-opc.c" |
| 404 | if ( echo $* | grep keep\-coldfire > /dev/null ) ; then |
| 405 | for i in $coldfire_files ; do |
| 406 | if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then |
| 407 | if [ -n "${verbose}" ] ; then |
| 408 | echo Keeping coldfire stuff in $i |
| 409 | fi |
| 410 | fi |
| 411 | done |
| 412 | else |
| 413 | for i in $coldfire_files ; do |
| 414 | if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then |
| 415 | if [ -n "${verbose}" ] ; then |
| 416 | echo Removing traces of \"coldfire\" from $i... |
| 417 | fi |
| 418 | cp $i new |
| 419 | sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new |
| 420 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 421 | if [ -n "${verbose}" ] ; then |
| 422 | echo Caching $i in .Recover... |
| 423 | fi |
| 424 | mv $i .Recover |
| 425 | fi |
| 426 | mv new $i |
| 427 | fi |
| 428 | done |
| 429 | fi |
| 430 | |
| 431 | sky_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c mips-dis.c" |
| 432 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
| 433 | for i in $sky_files ; do |
| 434 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then |
| 435 | if [ -n "${verbose}" ] ; then |
| 436 | echo Keeping sky stuff in $i |
| 437 | fi |
| 438 | fi |
| 439 | done |
| 440 | else |
| 441 | for i in $sky_files ; do |
| 442 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then |
| 443 | if [ -n "${verbose}" ] ; then |
| 444 | echo Removing traces of \"sky\" from $i... |
| 445 | fi |
| 446 | cp $i new |
| 447 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new |
| 448 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 449 | if [ -n "${verbose}" ] ; then |
| 450 | echo Caching $i in .Recover... |
| 451 | fi |
| 452 | mv $i .Recover |
| 453 | fi |
| 454 | mv new $i |
| 455 | fi |
| 456 | done |
| 457 | fi |
| 458 | |
| 459 | m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c" |
| 460 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then |
| 461 | for i in $m32rx_files ; do |
| 462 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then |
| 463 | if [ -n "${verbose}" ] ; then |
| 464 | echo Keeping m32rx stuff in $i |
| 465 | fi |
| 466 | fi |
| 467 | done |
| 468 | else |
| 469 | for i in $m32rx_files ; do |
| 470 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then |
| 471 | if [ -n "${verbose}" ] ; then |
| 472 | echo Removing traces of \"m32rx\" from $i... |
| 473 | fi |
| 474 | cp $i new |
| 475 | # The PIPE sanitization will be much cleaner with redact. |
| 476 | sed -e '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' \ |
| 477 | -e 's/, PIPE_[A-Z]*//g' < $i > new |
| 478 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 479 | if [ -n "${verbose}" ] ; then |
| 480 | echo Caching $i in .Recover... |
| 481 | fi |
| 482 | mv $i .Recover |
| 483 | fi |
| 484 | mv new $i |
| 485 | fi |
| 486 | done |
| 487 | fi |
| 488 | |
| 489 | nortel_ppc750_files="ChangeLog ppc-opc.c" |
| 490 | if ( echo $* | grep keep\-nortel-ppc750 > /dev/null ) ; then |
| 491 | for i in $nortel_ppc750_files ; do |
| 492 | if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then |
| 493 | if [ -n "${verbose}" ] ; then |
| 494 | echo Keeping nortel-ppc750 stuff in $i |
| 495 | fi |
| 496 | fi |
| 497 | done |
| 498 | else |
| 499 | for i in $nortel_ppc750_files ; do |
| 500 | if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then |
| 501 | if [ -n "${verbose}" ] ; then |
| 502 | echo Removing traces of \"nortel-ppc750\" from $i... |
| 503 | fi |
| 504 | cp $i new |
| 505 | # The PIPE sanitization will be much cleaner with redact. |
| 506 | sed -e '/start\-sanitize\-nortel-ppc750/,/end\-sanitize\-nortel-ppc750/d' \ |
| 507 | -e 's/, PIPE_[A-Z]*//g' < $i > new |
| 508 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 509 | if [ -n "${verbose}" ] ; then |
| 510 | echo Caching $i in .Recover... |
| 511 | fi |
| 512 | mv $i .Recover |
| 513 | fi |
| 514 | mv new $i |
| 515 | fi |
| 516 | done |
| 517 | fi |
| 518 | |
| 519 | for i in *; do |
| 520 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then |
| 521 | echo '***' Some mentions of Sanitize are still left in opcodes/$i! 1>&2 |
| 522 | fi |
| 523 | done |
| 524 | |
| 525 | for lost in .. $lose_these_too; do |
| 526 | if test $lost != ..; then |
| 527 | for i in Makefile.am Makefile.in configure.in configure; do |
| 528 | if fgrep $lost $i >/dev/null 2>&1; then |
| 529 | echo '***' File $lost was sanitized out but is still mentioned in opcodes/$i 1>&2 |
| 530 | fi |
| 531 | done |
| 532 | fi |
| 533 | done |
| 534 | |
| 535 | # This must come after all other sanitizations. Re-sanitize the .pot |
| 536 | # file. |
| 537 | if [ -n "${verbose}" ]; then |
| 538 | echo Re-computing files for gettext ... |
| 539 | fi |
| 540 | |
| 541 | if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then |
| 542 | if [ -n "${verbose}" ]; then |
| 543 | echo Caching po/POTFILES.in in .Recover... |
| 544 | fi |
| 545 | mv po/POTFILES.in po/.Recover |
| 546 | fi |
| 547 | |
| 548 | ls -1 *.[ch] cg*.in 2>/dev/null | sed -e 's,^\./,,' > po/POTFILES.in |
| 549 | |
| 550 | if [ -n "${safe}" -a ! -f po/.Recover/opcodes.pot ]; then |
| 551 | if [ -n "${verbose}" ]; then |
| 552 | echo Caching po/opcodes.pot in .Recover... |
| 553 | fi |
| 554 | mv po/opcodes.pot po/.Recover |
| 555 | fi |
| 556 | |
| 557 | # If this fails, Sanitization must fail. |
| 558 | xgettext -C -c -k_ -kN_ -f po/POTFILES.in -o po/opcodes.pot || exit 1 |
| 559 | |
| 560 | # End of file. |