Initial import of xbps with code as August '09.

--HG--
extra : convert_revision : juan%40xbps-20090817170720-amxxac4a2e8bza1j
This commit is contained in:
juan
2009-08-17 19:07:20 +02:00
commit 3f3b6d00dd
52 changed files with 8657 additions and 0 deletions

19
bin/xbps-cmpver/main.c Normal file
View File

@ -0,0 +1,19 @@
/*
* Compare package and version strings
* @ 2008
* Author: pancake <youterm.com>
*/
#include <xbps_api.h>
int main(int argc, char **argv)
{
if (argc < 3) {
printf("Usage: xbps-cmpver [installed] [required]\n");
printf(" xbps-cmpver foo-1.2 foo-2.2 # $? = 1\n");
printf(" xbps-cmpver foo-1.2 foo-1.1.0 # $? = 0\n");
printf(" xbps-cmpver foo-1.2 foo-1.2 # $? = 0\n");
return 1;
}
return xbps_cmpver(argv[1], argv[2]);
}