![]() |
FOSSology Advancing open source analysis and development |
Using FOSSology from the Command Line (0.6.1)For release 1.0 FOSSology has only 1 command line interface. This interface is used to upload 1 or more archives into the DataBase. After the upload has been scheduled, the UI is used to track when the job(s) will be completed and to view the folders created by the upload. See the man page below for details.
cp2foss: load one or more files or archives into the fossology DB.SYNOPSIScp2foss [-h] {-p <folder-path> -n <folder-name> -a <path-to-archive> -d ``description'' | [-f <file-of-parameters>]} [-A] DESCRIPTIONcp2foss (copy to foss) will load a single file or tar'ed archive into the folder specificed by -n, under the folder-path specified with -p. The folder-path and folder-name do not need to exist. cp2foss will create them as needed. If more than a single archive needs to be loaded, a file of input parameters can be supplied using the -f option. If the -f option is used all of the other options are ignored. Options
-p Mysrcs -n foo -a /tmp/mysrcs/foo.c -d "the foo program"
-p Mysrcs -n bar -a /tmp/mysrcs/bar.c -d "the bar program"
-p Othersrc -n randy /tmp/other/randy -d 'somebodies randy program'
The above file would load 3 archives, foo.c, bar.c and randy. Folders Mysrcs and Othersrc would be created if they did not exist. folders for foo bar and randy would be placed under the parent folders. Mysrcs/foo, Mysrcs/bar, Othersrc/randy. EXAMPLES
Would load the archive called sonny in the folder son under the folder path Mom.
Would read the file /pub/lotsOarchives and process each line. If there were no errors, each archive specified in each line would be uploaded into the data-base. AUTHORMark Donohoe for the Hewlett-Packard Company SEE ALSOFOSSology Project documentation is licensed under the GNU Free Documentation License Version 1.2 | |||