equal
deleted
inserted
replaced
1 /* cdbackup.c |
1 /* cdbackup.c |
2 Copyright (c) 2000-2012 Craig Condit, Stefan Huelswitt. |
2 Copyright (c) 2000-2013 Craig Condit, Stefan Huelswitt. |
3 |
3 |
4 Redistribution and use in source and binary forms, with or without |
4 Redistribution and use in source and binary forms, with or without |
5 modification, are permitted provided that the following conditions are met: |
5 modification, are permitted provided that the following conditions are met: |
6 |
6 |
7 1. Redistributions of source code must retain the above copyright notice, |
7 1. Redistributions of source code must retain the above copyright notice, |
108 *p++="-dao"; |
108 *p++="-dao"; |
109 *p++=make_arg("tsize=%ds",secs); |
109 *p++=make_arg("tsize=%ds",secs); |
110 /* work around the oddidity that cdrecord refuses to burn the disk, if |
110 /* work around the oddidity that cdrecord refuses to burn the disk, if |
111 the tracksize is less than the first layer size on dual-layer disks */ |
111 the tracksize is less than the first layer size on dual-layer disks */ |
112 if(layerbreak>0 && secs<layerbreak) |
112 if(layerbreak>0 && secs<layerbreak) |
113 *p++=make_arg("driveropts=layerbreak=%ld",layerbreak); |
113 *p++=make_arg("padsize=%lds",layerbreak-secs+1); |
114 } |
114 } |
115 else { |
115 else { |
116 *p++="-multi"; |
116 *p++="-multi"; |
117 *p++="-tao"; |
117 *p++="-tao"; |
118 *p++=make_arg("padsize=%ds",padsize); |
118 *p++=make_arg("padsize=%ds",padsize); |
194 } |
194 } |
195 |
195 |
196 while ((i=getopt(argc,argv,"d:r:l:s:p:a:c:mvVXDCi:wRE:"))>0) { |
196 while ((i=getopt(argc,argv,"d:r:l:s:p:a:c:mvVXDCi:wRE:"))>0) { |
197 switch (i) { |
197 switch (i) { |
198 case 'V': fprintf(stderr,"cdbackup "VERSION" (compiled "__DATE__")\n" |
198 case 'V': fprintf(stderr,"cdbackup "VERSION" (compiled "__DATE__")\n" |
199 "Copyright (C) 2000-2010\n" |
199 "Copyright (C) 2000-2013\n" |
200 "This is free software; see the source for copying conditions.\n" |
200 "This is free software; see the source for copying conditions.\n" |
201 "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n" |
201 "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n" |
202 "PARTICULAR PURPOSE.\n"); |
202 "PARTICULAR PURPOSE.\n"); |
203 exit(0); |
203 exit(0); |
204 case 'v': verbose=1; break; |
204 case 'v': verbose=1; break; |