diff options
author | Colin Walters <walters@verbum.org> | 2011-11-02 15:45:32 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-11-02 15:45:32 -0400 |
commit | 21c7ff74b6e55058915d86f01f19f7b5e831e412 (patch) | |
tree | 66a2b72c2d72d0b735adfd1f95c0323dfb01645a | |
parent | 2b00cf381076bb72557f9721dbc3ca8dc2940440 (diff) | |
download | ostree-21c7ff74b6e55058915d86f01f19f7b5e831e412.tar.gz |
De-recursify source tree
-rw-r--r-- | Makefile-libostree.am | 32 | ||||
-rw-r--r-- | Makefile-ostree.am | 38 | ||||
-rw-r--r-- | Makefile-otutil.am | 33 | ||||
-rw-r--r-- | Makefile-src.am | 65 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | libostree/ostree-checkout.c (renamed from src/libostree/ostree-checkout.c) | 0 | ||||
-rw-r--r-- | libostree/ostree-checkout.h (renamed from src/libostree/ostree-checkout.h) | 0 | ||||
-rw-r--r-- | libostree/ostree-core.c (renamed from src/libostree/ostree-core.c) | 0 | ||||
-rw-r--r-- | libostree/ostree-core.h (renamed from src/libostree/ostree-core.h) | 0 | ||||
-rw-r--r-- | libostree/ostree-repo.c (renamed from src/libostree/ostree-repo.c) | 0 | ||||
-rw-r--r-- | libostree/ostree-repo.h (renamed from src/libostree/ostree-repo.h) | 0 | ||||
-rw-r--r-- | libostree/ostree.h (renamed from src/libostree/ostree.h) | 0 | ||||
-rw-r--r-- | libotutil/ot-gio-utils.c (renamed from src/libotutil/ot-gio-utils.c) | 0 | ||||
-rw-r--r-- | libotutil/ot-gio-utils.h (renamed from src/libotutil/ot-gio-utils.h) | 0 | ||||
-rw-r--r-- | libotutil/ot-opt-utils.c (renamed from src/libotutil/ot-opt-utils.c) | 0 | ||||
-rw-r--r-- | libotutil/ot-opt-utils.h (renamed from src/libotutil/ot-opt-utils.h) | 0 | ||||
-rw-r--r-- | libotutil/ot-unix-utils.c (renamed from src/libotutil/ot-unix-utils.c) | 2 | ||||
-rw-r--r-- | libotutil/ot-unix-utils.h (renamed from src/libotutil/ot-unix-utils.h) | 0 | ||||
-rw-r--r-- | libotutil/otutil.h (renamed from src/libotutil/otutil.h) | 0 | ||||
-rw-r--r-- | ostree/main.c (renamed from src/main.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-checkout.c (renamed from src/ot-builtin-checkout.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-commit.c (renamed from src/ot-builtin-commit.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-fsck.c (renamed from src/ot-builtin-fsck.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-init.c (renamed from src/ot-builtin-init.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-link-file.c (renamed from src/ot-builtin-link-file.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-log.c (renamed from src/ot-builtin-log.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-pull.c (renamed from src/ot-builtin-pull.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-remote.c (renamed from src/ot-builtin-remote.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-rev-parse.c (renamed from src/ot-builtin-rev-parse.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-run-triggers.c (renamed from src/ot-builtin-run-triggers.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtin-show.c (renamed from src/ot-builtin-show.c) | 0 | ||||
-rw-r--r-- | ostree/ot-builtins.h (renamed from src/ot-builtins.h) | 0 |
32 files changed, 107 insertions, 67 deletions
diff --git a/Makefile-libostree.am b/Makefile-libostree.am new file mode 100644 index 00000000..7b8790b8 --- /dev/null +++ b/Makefile-libostree.am @@ -0,0 +1,32 @@ +# Makefile for C source code +# +# Copyright (C) 2011 Colin Walters <walters@verbum.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Author: Colin Walters <walters@verbum.org> + +noinst_LTLIBRARIES += libostree.la + +libostree_la_SOURCES = libostree/ostree.h \ + libostree/ostree-core.c \ + libostree/ostree-core.h \ + libostree/ostree-repo.c \ + libostree/ostree-repo.h \ + libostree/ostree-checkout.c \ + libostree/ostree-checkout.h \ + $(NULL) +libostree_la_CFLAGS = -I$(srcdir)/libotutil -I$(srcdir)/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_COREBIN_DEP_CFLAGS) +libostree_la_LIBADD = libotutil.la $(OT_COREBIN_DEP_LIBS) diff --git a/Makefile-ostree.am b/Makefile-ostree.am new file mode 100644 index 00000000..01ffbecc --- /dev/null +++ b/Makefile-ostree.am @@ -0,0 +1,38 @@ +# Makefile for C source code +# +# Copyright (C) 2011 Colin Walters <walters@verbum.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Author: Colin Walters <walters@verbum.org> + +bin_PROGRAMS += ostree + +ostree_SOURCES = ostree/main.c \ + ostree/ot-builtins.h \ + ostree/ot-builtin-checkout.c \ + ostree/ot-builtin-commit.c \ + ostree/ot-builtin-fsck.c \ + ostree/ot-builtin-init.c \ + ostree/ot-builtin-link-file.c \ + ostree/ot-builtin-log.c \ + ostree/ot-builtin-pull.c \ + ostree/ot-builtin-run-triggers.c \ + ostree/ot-builtin-remote.c \ + ostree/ot-builtin-rev-parse.c \ + ostree/ot-builtin-show.c \ + $(NULL) +ostree_CFLAGS = -I$(srcdir)/src -I$(srcdir)/libostree -I$(srcdir)/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(OT_COREBIN_DEP_CFLAGS) +ostree_LDADD = libotutil.la libostree.la $(OT_COREBIN_DEP_LIBS) diff --git a/Makefile-otutil.am b/Makefile-otutil.am new file mode 100644 index 00000000..8df7c5b4 --- /dev/null +++ b/Makefile-otutil.am @@ -0,0 +1,33 @@ +# Makefile for C source code +# +# Copyright (C) 2011 Colin Walters <walters@verbum.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Author: Colin Walters <walters@verbum.org> + +noinst_LTLIBRARIES += libotutil.la + +libotutil_la_SOURCES = \ + libotutil/ot-opt-utils.c \ + libotutil/ot-opt-utils.h \ + libotutil/ot-unix-utils.c \ + libotutil/ot-unix-utils.h \ + libotutil/ot-gio-utils.c \ + libotutil/ot-gio-utils.h \ + libotutil/otutil.h \ + $(NULL) +libotutil_la_CFLAGS = -I$(srcdir)/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(GIO_UNIX_CFLAGS) +libotutil_la_LIBADD = $(GIO_UNIX_LIBS) diff --git a/Makefile-src.am b/Makefile-src.am deleted file mode 100644 index 33657e6c..00000000 --- a/Makefile-src.am +++ /dev/null @@ -1,65 +0,0 @@ -# Makefile for C source code -# -# Copyright (C) 2011 Colin Walters <walters@verbum.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# Author: Colin Walters <walters@verbum.org> - -noinst_LTLIBRARIES += libotutil.la - -libotutil_la_SOURCES = \ - src/libotutil/ot-opt-utils.c \ - src/libotutil/ot-opt-utils.h \ - src/libotutil/ot-unix-utils.c \ - src/libotutil/ot-unix-utils.h \ - src/libotutil/ot-gio-utils.c \ - src/libotutil/ot-gio-utils.h \ - src/libotutil/otutil.h \ - $(NULL) -libotutil_la_CFLAGS = -I$(srcdir)/src/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(GIO_UNIX_CFLAGS) -libotutil_la_LIBADD = $(GIO_UNIX_LIBS) - -noinst_LTLIBRARIES += libostree.la - -libostree_la_SOURCES = src/libostree/ostree.h \ - src/libostree/ostree-core.c \ - src/libostree/ostree-core.h \ - src/libostree/ostree-repo.c \ - src/libostree/ostree-repo.h \ - src/libostree/ostree-checkout.c \ - src/libostree/ostree-checkout.h \ - $(NULL) -libostree_la_CFLAGS = -I$(srcdir)/src/libostree -I$(srcdir)/src/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(OT_COREBIN_DEP_CFLAGS) -libostree_la_LIBADD = libotutil.la $(OT_COREBIN_DEP_LIBS) - -bin_PROGRAMS += ostree - -ostree_SOURCES = src/main.c \ - src/ot-builtins.h \ - src/ot-builtin-checkout.c \ - src/ot-builtin-commit.c \ - src/ot-builtin-fsck.c \ - src/ot-builtin-init.c \ - src/ot-builtin-link-file.c \ - src/ot-builtin-log.c \ - src/ot-builtin-pull.c \ - src/ot-builtin-run-triggers.c \ - src/ot-builtin-remote.c \ - src/ot-builtin-rev-parse.c \ - src/ot-builtin-show.c \ - $(NULL) -ostree_CFLAGS = -I$(srcdir)/src -I$(srcdir)/src/libostree -I$(srcdir)/src/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(OT_COREBIN_DEP_CFLAGS) -ostree_LDADD = libotutil.la libostree.la $(OT_COREBIN_DEP_LIBS) diff --git a/Makefile.am b/Makefile.am index 1b28adf0..3dbda721 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,5 +11,7 @@ libexec_PROGRAMS = noinst_LTLIBRARIES = noinst_PROGRAMS = -include Makefile-src.am +include Makefile-otutil.am +include Makefile-libostree.am +include Makefile-ostree.am include Makefile-triggers.am diff --git a/src/libostree/ostree-checkout.c b/libostree/ostree-checkout.c index 0569f287..0569f287 100644 --- a/src/libostree/ostree-checkout.c +++ b/libostree/ostree-checkout.c diff --git a/src/libostree/ostree-checkout.h b/libostree/ostree-checkout.h index 375b9774..375b9774 100644 --- a/src/libostree/ostree-checkout.h +++ b/libostree/ostree-checkout.h diff --git a/src/libostree/ostree-core.c b/libostree/ostree-core.c index d9027a3c..d9027a3c 100644 --- a/src/libostree/ostree-core.c +++ b/libostree/ostree-core.c diff --git a/src/libostree/ostree-core.h b/libostree/ostree-core.h index c1fb4917..c1fb4917 100644 --- a/src/libostree/ostree-core.h +++ b/libostree/ostree-core.h diff --git a/src/libostree/ostree-repo.c b/libostree/ostree-repo.c index 1b58d327..1b58d327 100644 --- a/src/libostree/ostree-repo.c +++ b/libostree/ostree-repo.c diff --git a/src/libostree/ostree-repo.h b/libostree/ostree-repo.h index e9a690a0..e9a690a0 100644 --- a/src/libostree/ostree-repo.h +++ b/libostree/ostree-repo.h diff --git a/src/libostree/ostree.h b/libostree/ostree.h index f2b23d16..f2b23d16 100644 --- a/src/libostree/ostree.h +++ b/libostree/ostree.h diff --git a/src/libotutil/ot-gio-utils.c b/libotutil/ot-gio-utils.c index ad172de7..ad172de7 100644 --- a/src/libotutil/ot-gio-utils.c +++ b/libotutil/ot-gio-utils.c diff --git a/src/libotutil/ot-gio-utils.h b/libotutil/ot-gio-utils.h index 0acb4dc9..0acb4dc9 100644 --- a/src/libotutil/ot-gio-utils.h +++ b/libotutil/ot-gio-utils.h diff --git a/src/libotutil/ot-opt-utils.c b/libotutil/ot-opt-utils.c index 54d107c8..54d107c8 100644 --- a/src/libotutil/ot-opt-utils.c +++ b/libotutil/ot-opt-utils.c diff --git a/src/libotutil/ot-opt-utils.h b/libotutil/ot-opt-utils.h index b65996f4..b65996f4 100644 --- a/src/libotutil/ot-opt-utils.h +++ b/libotutil/ot-opt-utils.h diff --git a/src/libotutil/ot-unix-utils.c b/libotutil/ot-unix-utils.c index e1e89725..78243f7c 100644 --- a/src/libotutil/ot-unix-utils.c +++ b/libotutil/ot-unix-utils.c @@ -54,7 +54,7 @@ ot_util_spawn_pager (GOutputStream **out_stream, argv[0] = (char*)pager; argv[1] = NULL; - if (!g_spawn_async_with_pipes (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, + if (!g_spawn_async_with_pipes (NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &pid, &stdin_fd, NULL, NULL, error)) { g_prefix_error (error, "%s", "Failed to spawn pager: "); diff --git a/src/libotutil/ot-unix-utils.h b/libotutil/ot-unix-utils.h index 0e1d3926..0e1d3926 100644 --- a/src/libotutil/ot-unix-utils.h +++ b/libotutil/ot-unix-utils.h diff --git a/src/libotutil/otutil.h b/libotutil/otutil.h index 2c49819a..2c49819a 100644 --- a/src/libotutil/otutil.h +++ b/libotutil/otutil.h diff --git a/src/main.c b/ostree/main.c index ad5dfd8f..ad5dfd8f 100644 --- a/src/main.c +++ b/ostree/main.c diff --git a/src/ot-builtin-checkout.c b/ostree/ot-builtin-checkout.c index 30622fd2..30622fd2 100644 --- a/src/ot-builtin-checkout.c +++ b/ostree/ot-builtin-checkout.c diff --git a/src/ot-builtin-commit.c b/ostree/ot-builtin-commit.c index 19af39b7..19af39b7 100644 --- a/src/ot-builtin-commit.c +++ b/ostree/ot-builtin-commit.c diff --git a/src/ot-builtin-fsck.c b/ostree/ot-builtin-fsck.c index 3a217524..3a217524 100644 --- a/src/ot-builtin-fsck.c +++ b/ostree/ot-builtin-fsck.c diff --git a/src/ot-builtin-init.c b/ostree/ot-builtin-init.c index d16b57c8..d16b57c8 100644 --- a/src/ot-builtin-init.c +++ b/ostree/ot-builtin-init.c diff --git a/src/ot-builtin-link-file.c b/ostree/ot-builtin-link-file.c index dddec440..dddec440 100644 --- a/src/ot-builtin-link-file.c +++ b/ostree/ot-builtin-link-file.c diff --git a/src/ot-builtin-log.c b/ostree/ot-builtin-log.c index c6d725b1..c6d725b1 100644 --- a/src/ot-builtin-log.c +++ b/ostree/ot-builtin-log.c diff --git a/src/ot-builtin-pull.c b/ostree/ot-builtin-pull.c index 65a52068..65a52068 100644 --- a/src/ot-builtin-pull.c +++ b/ostree/ot-builtin-pull.c diff --git a/src/ot-builtin-remote.c b/ostree/ot-builtin-remote.c index 40f7c295..40f7c295 100644 --- a/src/ot-builtin-remote.c +++ b/ostree/ot-builtin-remote.c diff --git a/src/ot-builtin-rev-parse.c b/ostree/ot-builtin-rev-parse.c index 6e86d6cf..6e86d6cf 100644 --- a/src/ot-builtin-rev-parse.c +++ b/ostree/ot-builtin-rev-parse.c diff --git a/src/ot-builtin-run-triggers.c b/ostree/ot-builtin-run-triggers.c index 49591564..49591564 100644 --- a/src/ot-builtin-run-triggers.c +++ b/ostree/ot-builtin-run-triggers.c diff --git a/src/ot-builtin-show.c b/ostree/ot-builtin-show.c index 8985c560..8985c560 100644 --- a/src/ot-builtin-show.c +++ b/ostree/ot-builtin-show.c diff --git a/src/ot-builtins.h b/ostree/ot-builtins.h index 1373f601..1373f601 100644 --- a/src/ot-builtins.h +++ b/ostree/ot-builtins.h |