Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 103188 | Differences between
and this patch

Collapse All | Expand All

(-)ifp-line-0.2.4.6-orig/ifp.1 (-3 / +18 lines)
Lines 1-4 Link Here
1
.\" $Id: ifp.1,v 1.2 2004/05/30 15:11:28 yamajun Exp $
1
.\" $Id: ifp.1,v 1.3 2005/05/15 15:17:46 yamajun Exp $
2
.\"
2
.\"
3
.\" Copyright (c)2004 Joe Wreschnig <piman@debian.org>
3
.\" Copyright (c)2004 Joe Wreschnig <piman@debian.org>
4
.\"
4
.\"
Lines 13-23 Link Here
13
.\"
13
.\"
14
.\" On Debian GNU/Linux systems, the GNU GPL can be found in
14
.\" On Debian GNU/Linux systems, the GNU GPL can be found in
15
.\" /usr/share/common-licenses/GPL-2.
15
.\" /usr/share/common-licenses/GPL-2.
16
.TH IFP 1 "May 30th, 2004"
16
.TH IFP 1 "May 16th, 2005"
17
.SH NAME
17
.SH NAME
18
\fBifp\fR \- access iRiver iFP audio devices
18
\fBifp\fR \- access iRiver iFP audio devices
19
.SH SYNOPSIS
19
.SH SYNOPSIS
20
\fBifp\fR \fIcommand\fR [\fIarguments ...\fR]
20
\fBifp\fR [\fBoption\fR] \fIcommand\fR [\fIarguments ...\fR]
21
.SH DESCRIPTION
21
.SH DESCRIPTION
22
\fBifp\fR lets you manage your music on an iRiver iFP music player acting in
22
\fBifp\fR lets you manage your music on an iRiver iFP music player acting in
23
"Manager Mode". If your player is using "UMS Mode", then you don't need
23
"Manager Mode". If your player is using "UMS Mode", then you don't need
Lines 25-30 Link Here
25
.PP
25
.PP
26
\fBifp\fR can upload or download files or directories, delete or make 
26
\fBifp\fR can upload or download files or directories, delete or make 
27
directories on the device, format the device, or upgrade your firmware.
27
directories on the device, format the device, or upgrade your firmware.
28
.PP
29
The following options are available:
30
.TP
31
\fB-h, --help\fR
32
Print help message.
33
.TP
34
\fB-v, --version\fR
35
Display the version number of \fBifp\fR.
28
.SH COMMANDS
36
.SH COMMANDS
29
.TP
37
.TP
30
\fBls\ \fR[\fIdirectory\fR]
38
\fBls\ \fR[\fIdirectory\fR]
Lines 90-95 Link Here
90
will not delete your music, but may have many other detrimental effects.
98
will not delete your music, but may have many other detrimental effects.
91
Don't turn the device off or unplug it while the firmware is updating,
99
Don't turn the device off or unplug it while the firmware is updating,
92
and don't attempt to upload new firmware with a low battery.
100
and don't attempt to upload new firmware with a low battery.
101
.TP
102
\fBhelp\fR
103
Print help message.  Same as "\fB-h\fR | \fB--help\fR".
104
.TP
105
\fBversion\fR
106
Display the version number of \fBifp\fR.  Same as "\fB-v\fR | \fB--version\fR".
107
.TP
93
.SH AUTHORS
108
.SH AUTHORS
94
Pavel Kriz <pavkriz@gybon.cz> and Yamashiro, Jun <yamajun@{ofug.net,
109
Pavel Kriz <pavkriz@gybon.cz> and Yamashiro, Jun <yamajun@{ofug.net,
95
cr.ie.u-ryukyu.ac.jp}> wrote \fBifp\fR. This manual page was written
110
cr.ie.u-ryukyu.ac.jp}> wrote \fBifp\fR. This manual page was written
(-)ifp-line-0.2.4.6-orig/ifp.c (-7 / +14 lines)
Lines 11-16 Link Here
11
#include "ifp_routines.h"
11
#include "ifp_routines.h"
12
12
13
void help(char *prog);
13
void help(char *prog);
14
void version(char *prog);
14
15
15
extern int IFP_BULK_TO;
16
extern int IFP_BULK_TO;
16
extern int IFP_BULK_FROM;
17
extern int IFP_BULK_FROM;
Lines 43-52 Link Here
43
    if (strstr(argv[0],"/mc/extfs/"))
44
    if (strstr(argv[0],"/mc/extfs/"))
44
	is_mc = IS_MC; else is_mc = IS_IFP;
45
	is_mc = IS_MC; else is_mc = IS_IFP;
45
46
46
    /* no command */
47
    /* no command, or help */
47
    if (argc < 2) {
48
    if (argc < 2 || strstr(argv[1], "help") || !strcmp("-h", argv[1])) {
48
	help(argv[0]);
49
	help(argv[0]);
49
	return 0;
50
	return 0;
51
    } else if (strstr(argv[1], "version") || !strcmp("-v", argv[1])) { 
52
	// "version" command or "-v | -version | --version" options. 
53
	version(argv[0]); 
54
	return 0; 
50
    }
55
    }
51
	    
56
	    
52
    usb_init();
57
    usb_init();
Lines 250-259 Link Here
250
}
255
}
251
256
252
void help(char *prog) {
257
void help(char *prog) {
253
    printf("%s: File manager for iRiver iFP music player. (version %s)\n",
258
    printf("usage: %s [-hv] command [params ...]\n",prog);
254
	    prog, IFP_VERSION);
255
    printf("\n");
256
    printf("usage: %s command params\n",prog);
257
    printf("commands:\n");
259
    printf("commands:\n");
258
    printf("    ls [directory]\n");
260
    printf("    ls [directory]\n");
259
    printf("    df\n");
261
    printf("    df\n");
Lines 273-280 Link Here
273
    printf("    firmversion\n");
275
    printf("    firmversion\n");
274
    printf("    format\n");
276
    printf("    format\n");
275
    printf("    firmupdate /path/to/FIRMWARE.HEX\n");
277
    printf("    firmupdate /path/to/FIRMWARE.HEX\n");
278
    printf("    help\n");
279
    printf("    version\n");
276
    printf("\n");
280
    printf("\n");
277
    printf("Note: This program cannot work with UMS firmware.\n");
281
    printf("Note: This program cannot work with UMS firmware.\n");
278
    printf("\n");
279
}
282
}
280
283
284
void version(char *prog) { 
285
    printf("%s: File manager for iRiver iFP music player. (version %s)\n", 
286
        prog, IFP_VERSION); 
287
}
(-)ifp-line-0.2.4.6-orig/README (-1 / +9 lines)
Lines 28-36 Link Here
28
    # ./nonroot.sh	(configuration for run ifp command by non-root users)
28
    # ./nonroot.sh	(configuration for run ifp command by non-root users)
29
29
30
USAGE
30
USAGE
31
    ./ifp command params
31
    ./ifp [option] command params
32
    (Need permission to read/write USB device for run ifp)
32
    (Need permission to read/write USB device for run ifp)
33
    
33
    
34
    - options:
35
	-h, --help
36
	    Print help message.
37
	-v, --version
38
	    Display the version number of ifp.
39
34
    - commands:
40
    - commands:
35
        ls [directory]
41
        ls [directory]
36
        df
42
        df
Lines 46-51 Link Here
46
	firmversion
52
	firmversion
47
	format
53
	format
48
	firmupdate /path/to/FIRMWARE.HEX
54
	firmupdate /path/to/FIRMWARE.HEX
55
	help
56
	version
49
	
57
	
50
COMMENTS
58
COMMENTS
51
    - terms UPLOAD & DOWNLOAD are inversed against those stupid iRiverManager's
59
    - terms UPLOAD & DOWNLOAD are inversed against those stupid iRiverManager's

Return to bug 103188