]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: move partx to disk-utils/
authorKarel Zak <kzak@redhat.com>
Tue, 26 Jun 2012 16:24:16 +0000 (18:24 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Jun 2012 18:50:18 +0000 (20:50 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
12 files changed:
Makefile.am
configure.ac
disk-utils/Makemodule.am
disk-utils/addpart.8 [moved from partx/addpart.8 with 100% similarity]
disk-utils/addpart.c [moved from partx/addpart.c with 100% similarity]
disk-utils/delpart.8 [moved from partx/delpart.8 with 100% similarity]
disk-utils/delpart.c [moved from partx/delpart.c with 100% similarity]
disk-utils/partx.8 [moved from partx/partx.8 with 97% similarity]
disk-utils/partx.c [moved from partx/partx.c with 99% similarity]
disk-utils/partx.h [moved from partx/partx.h with 100% similarity]
partx/.gitignore [deleted file]
partx/Makefile.am [deleted file]

index 8c58e4e0160e5ccfecb6530aa201c5826977da3b..98f7a38662733baf33dcf9662ecf32f96a6d6528 100644 (file)
@@ -34,10 +34,6 @@ SUBDIRS = \
 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
                -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
 
-if BUILD_PARTX
-SUBDIRS += partx
-endif
-
 ACLOCAL_AMFLAGS = -I m4
 
 EXTRA_DIST += \
index 09e76952fddba4f1596a407fd66a7164c16fb3c4..2f3e196b5d7db99c9901119d89dbfd13e93a09d4 100644 (file)
@@ -1302,7 +1302,6 @@ libmount/src/libmount.h
 libuuid/uuid.pc
 man/ru/Makefile
 misc-utils/uuidd.service
-partx/Makefile
 po/Makefile.in
 tests/Makefile
 tests/commands.sh
index 7219f8c73afb40c0b891748db20cd494d18b9988..48506980cb329d0ab655786f3d1eb89a698c156c 100644 (file)
@@ -126,3 +126,40 @@ usrsbin_exec_PROGRAMS += fdformat
 dist_man_MANS += disk-utils/fdformat.8
 fdformat_SOURCES = disk-utils/fdformat.c
 endif # LINUX
+
+
+if BUILD_PARTX
+usrsbin_exec_PROGRAMS += partx addpart delpart
+dist_man_MANS += \
+       disk-utils/addpart.8 \
+       disk-utils/delpart.8 \
+       disk-utils/partx.8
+
+
+addpart_SOURCES = \
+       disk-utils/addpart.c \
+       disk-utils/partx.h \
+       lib/strutils.c
+
+delpart_SOURCES = \
+       disk-utils/delpart.c \
+       disk-utils/partx.h \
+       lib/strutils.c
+
+partx_SOURCES = \
+       disk-utils/partx.c \
+       disk-utils/partx.h \
+       lib/at.c \
+       lib/blkdev.c \
+       lib/canonicalize.c \
+       lib/linux_version.c \
+       lib/loopdev.c \
+       lib/mbsalign.c \
+       lib/strutils.c \
+       lib/sysfs.c \
+       lib/tt.c
+
+partx_CFLAGS = -I$(ul_libblkid_incdir)
+partx_LDADD = libblkid.la
+
+endif # BUILD_PARTX
similarity index 100%
rename from partx/addpart.8
rename to disk-utils/addpart.8
similarity index 100%
rename from partx/addpart.c
rename to disk-utils/addpart.c
similarity index 100%
rename from partx/delpart.8
rename to disk-utils/delpart.8
similarity index 100%
rename from partx/delpart.c
rename to disk-utils/delpart.c
similarity index 97%
rename from partx/partx.8
rename to disk-utils/partx.8
index 86350c4124e6dc0bcd300bdf35eb4db61399c53e..be1608d78db49dd22354153d8c8c596c9a72e551 100644 (file)
@@ -21,9 +21,9 @@ The
 .I disk
 argument is optional when a
 .I partition
-argument is provided.  To force scanning a partition as if it were a
-whole disk (for example to list nested subpartitions), use the argument
-"-".  For example:
+argument is provided.  To force scanning a partition as if it were a whole disk
+(for example to list nested subpartitions), use the argument "-".  For example:
+
 .RS 7
 .TP
 partx \-\-show \- /dev/sda3
similarity index 99%
rename from partx/partx.c
rename to disk-utils/partx.c
index 0c3f8f98086f7d48442d6c1847a4c2da232555ad..6c3287b54746aeccdcf5541acd3849a6d9ddb0ae 100644 (file)
@@ -879,4 +879,3 @@ int main(int argc, char **argv)
        close(fd);
        return rc ? EXIT_FAILURE : EXIT_SUCCESS;
 }
-
similarity index 100%
rename from partx/partx.h
rename to disk-utils/partx.h
diff --git a/partx/.gitignore b/partx/.gitignore
deleted file mode 100644 (file)
index 9767d23..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-addpart
-delpart
-partx
diff --git a/partx/Makefile.am b/partx/Makefile.am
deleted file mode 100644 (file)
index 1f41890..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-include $(top_srcdir)/config/include-Makefile.am
-
-usrsbin_exec_PROGRAMS = addpart delpart
-dist_man_MANS = addpart.8 delpart.8
-
-usrsbin_exec_PROGRAMS += partx
-addpart_SOURCES = addpart.c $(top_srcdir)/lib/strutils.c
-delpart_SOURCES = delpart.c $(top_srcdir)/lib/strutils.c
-partx_SOURCES = \
-       partx.c \
-       partx.h \
-       $(top_srcdir)/lib/at.c \
-       $(top_srcdir)/lib/blkdev.c \
-       $(top_srcdir)/lib/canonicalize.c \
-       $(top_srcdir)/lib/linux_version.c \
-       $(top_srcdir)/lib/loopdev.c \
-       $(top_srcdir)/lib/mbsalign.c \
-       $(top_srcdir)/lib/strutils.c \
-       $(top_srcdir)/lib/sysfs.c \
-       $(top_srcdir)/lib/tt.c
-
-partx_CFLAGS = -I$(ul_libblkid_incdir)
-partx_LDADD = $(ul_libblkid_la)
-dist_man_MANS += partx.8