xbps-cmpver: fix usage.

--HG--
extra : convert_revision : 450fc45a76cb4dc24f3bf4c8f4cba747ed05d653
This commit is contained in:
Juan RP 2008-12-22 02:47:36 +01:00
parent 77debbc7c4
commit 9a10b636cc
1 changed files with 3 additions and 3 deletions

View File

@ -75,9 +75,9 @@ int chkpkg(const char *a0, const char *b0)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
if (argc<3) { if (argc<3) {
printf("Usage: ./xbps-cmpver [old] [new]\n"); printf("Usage: xbps-cmpver [old] [new]\n");
printf(" ./xbpks-cmpver foo-1.2 foo-2.2 # $? = 1\n"); printf(" xbpks-cmpver foo-1.2 foo-2.2 # $? = 1\n");
printf(" ./xbpks-cmpver foo-1.2 foo-1.2 # $? = 0\n"); printf(" xbpks-cmpver foo-1.2 foo-1.2 # $? = 0\n");
return 1; return 1;
} }
return (chkpkg(argv[1], argv[2]) > 0)?1:0; return (chkpkg(argv[1], argv[2]) > 0)?1:0;