mirror of
https://github.com/pygos/pkg-utils.git
synced 2024-11-22 12:59:46 +01:00
Cleanup: remove unpack.h, eliminate subdirectory
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
f62bab2629
commit
417fa5b907
3 changed files with 10 additions and 22 deletions
|
@ -34,7 +34,7 @@ pkg_SOURCES += main/cmd/dump/dump.c main/cmd/dump/dump.h main/cmd/dump/dump_toc.
|
||||||
pkg_SOURCES += main/cmd/dump/dump_header.c
|
pkg_SOURCES += main/cmd/dump/dump_header.c
|
||||||
|
|
||||||
# unpack command
|
# unpack command
|
||||||
pkg_SOURCES += main/cmd/unpack/unpack.c main/cmd/unpack/unpack.h
|
pkg_SOURCES += main/cmd/unpack.c
|
||||||
|
|
||||||
# help command
|
# help command
|
||||||
pkg_SOURCES += main/cmd/help.c
|
pkg_SOURCES += main/cmd/help.c
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
#include "unpack.h"
|
#include <getopt.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#include "pkgreader.h"
|
||||||
|
#include "command.h"
|
||||||
|
#include "pkgio.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
static const struct option long_opts[] = {
|
static const struct option long_opts[] = {
|
||||||
{ "root", required_argument, NULL, 'r' },
|
{ "root", required_argument, NULL, 'r' },
|
|
@ -1,20 +0,0 @@
|
||||||
#ifndef UNPACK_H
|
|
||||||
#define UNPACK_H
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <getopt.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#include "image_entry.h"
|
|
||||||
#include "pkgreader.h"
|
|
||||||
#include "command.h"
|
|
||||||
#include "pkgio.h"
|
|
||||||
#include "util.h"
|
|
||||||
|
|
||||||
#endif /* UNPACK_H */
|
|
Loading…
Reference in a new issue