File: split.pl

package info (click to toggle)
texlive-doc 2007.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 129,872 kB
  • ctags: 3,330
  • sloc: xml: 23,147; perl: 8,370; makefile: 843; sh: 352; lisp: 276; java: 159; python: 97; sed: 4
file content (16 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#@TeXIndex{a0poster,
open TMP, ">/dev/null";
while (<>) {
       chop;
    if (/\@TeXIndex/) {
	print TMP "\n";
       close TMP;
	$keep=$_;
	s/\@TeXIndex{(.*),.*/$1/;
	print "[$_]\n";	   
       open TMP, ">$_.bib";
     print TMP "$keep\n";
    }
       else { print TMP "$_\n" ; }

}