Changeset 384
- Timestamp:
- 04/19/05 20:10:07 (8 years ago)
- Location:
- trunk/splitpipe
- Files:
-
- 1 added
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/splitpipe/Makefile
r375 r384 17 17 18 18 19 20 19 clean: 21 20 rm -rf *~ *.o splitpipe … … 24 23 25 24 common_OBJECTS=misc.o md5.o 26 splitpipe_OBJECTS=splitpipe.o $(common_OBJECTS) 27 joinpipe_OBJECTS=joinpipe.o $(common_OBJECTS) 25 splitpipe_OBJECTS=splitpipe.o joinpipe.o main.o $(common_OBJECTS) 28 26 29 27 splitpipe: $(splitpipe_OBJECTS) 30 28 g++ $(splitpipe_OBJECTS) -o $@ 31 29 32 joinpipe: $(joinpipe_OBJECTS) 33 g++ $(joinpipe_OBJECTS) -o $@ 34 30 joinpipe: splitpipe 31 ln -f splitpipe joinpipe 35 32 36 33 check: all … … 48 45 install: 49 46 install -s splitpipe $(BINDIR) 50 install -s joinpipe $(BINDIR)47 ln -f $(BINDIR)/splitpipe $(BINDIR)/joinpipe -
trunk/splitpipe/THANKS
r377 r384 2 2 Reinoud van Leeuwen 3 3 Stuart Rackham (for AsciiDoc) 4 Nero Imhard -
trunk/splitpipe/TODO
r379 r384 1 - perhaps merge split and joinpipe (suggestion of "Kei" and Mel Roman) 1 EASY: 2 - figure out exact byte sizes of CDR, CDR-80, DVD 2 3 4 MEDIUM: 5 - add date/time session stretch 6 7 - add "name" chunk stretch 8 9 DONE! - perhaps merge split and joinpipe (suggestion of "Kei" and Mel Roman) 10 11 - i18n 12 13 HARD: 3 14 - output of cdrecord is fugly, perhaps add --cdrecord for prettifying 4 15 … … 8 19 - implement retry in joinpipe 9 20 10 hmm - write dvdrecord-script11 12 21 - define environment variables 13 22 14 23 - take out getopt_long stuff, it is somewhat ugly 24 25 - open /dev/tty and poll it in the loop 26 27 - allow single key commands during the process 28 29 Done: 15 30 16 31 DONE! - make buildStretch, which appends stretches to a string … … 18 33 DONE! - teach writen about EAGAIN 19 34 20 - open /dev/tty and poll it in the loop21 22 - allow single key commands during the process23 24 - add date/time session stretch25 26 - add "name" chunk stretch27 28 35 DONE! - manpages 29 36 30 - i18n 37 hmm - write dvdrecord-script 31 38 39 -
trunk/splitpipe/joinpipe.cc
r375 r384 51 51 } 52 52 53 void usage()53 static void usage() 54 54 { 55 55 cerr<<"joinpipe joins multiple volumes (volumes) into one pipe.\n"; … … 64 64 } 65 65 66 void ParseCommandline(int argc, char** argv)66 static void ParseCommandline(int argc, char** argv) 67 67 { 68 68 int c; … … 115 115 } 116 116 117 int main(int argc, char** argv)117 int JoinpipeMain(int argc, char** argv) 118 118 try 119 119 { … … 210 210 } 211 211 } 212 return EXIT_SUCCESS; 212 213 } 213 214 catch(exception &e) 214 215 { 215 216 cerr<<"Fatal: "<<e.what()<<endl; 216 } 217 return EXIT_FAILURE; 218 } -
trunk/splitpipe/misc.hh
r375 r384 22 22 } __attribute__((packed)); 23 23 24 int SplitpipeMain(int argc, char** argv); 25 int JoinpipeMain(int argc, char** argv); 26 24 27 #endif -
trunk/splitpipe/splitpipe.cc
r375 r384 108 108 } 109 109 110 void usage()110 static void usage() 111 111 { 112 112 cerr<<"splitpipe divides its input over several volumes.\n"; … … 127 127 } 128 128 129 void ParseCommandline(int argc, char** argv)129 static void ParseCommandline(int argc, char** argv) 130 130 { 131 131 int c; … … 269 269 270 270 271 int main(int argc, char** argv)271 int SplitpipeMain(int argc, char** argv) 272 272 try 273 273 { … … 498 498 if(parameters.verbose) 499 499 cerr<<"splitpipe: output "<<numStretches<<" stretches\n"; 500 return EXIT_SUCCESS; 500 501 } 501 502 catch(exception &e) 502 503 { 503 504 cerr<<"Fatal: "<<e.what()<<endl; 504 } 505 return EXIT_FAILURE; 506 }