| 1 | /* -*-c-*- |
| 2 | * |
| 3 | * $Id: sw_links.h,v 1.1 1999/06/02 16:53:36 mdw Exp $ |
| 4 | * |
| 5 | * Messing with symlink trees |
| 6 | * |
| 7 | * (c) 1999 EBI |
| 8 | */ |
| 9 | |
| 10 | /*----- Licensing notice --------------------------------------------------* |
| 11 | * |
| 12 | * This file is part of sw-tools. |
| 13 | * |
| 14 | * sw-tools is free software; you can redistribute it and/or modify |
| 15 | * it under the terms of the GNU General Public License as published by |
| 16 | * the Free Software Foundation; either version 2 of the License, or |
| 17 | * (at your option) any later version. |
| 18 | * |
| 19 | * sw-tools is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with sw-tools; if not, write to the Free Software Foundation, |
| 26 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 27 | */ |
| 28 | |
| 29 | /*----- Revision history --------------------------------------------------* |
| 30 | * |
| 31 | * $Log: sw_links.h,v $ |
| 32 | * Revision 1.1 1999/06/02 16:53:36 mdw |
| 33 | * Initial revision |
| 34 | * |
| 35 | */ |
| 36 | |
| 37 | #ifndef SW_LINKS_H |
| 38 | #define SW_LINKS_H |
| 39 | |
| 40 | #ifdef __cplusplus |
| 41 | extern "C" { |
| 42 | #endif |
| 43 | |
| 44 | /*----- Header files ------------------------------------------------------*/ |
| 45 | |
| 46 | #ifndef SW_H |
| 47 | # include "sw.h" |
| 48 | #endif |
| 49 | |
| 50 | /*----- Subcommands -------------------------------------------------------*/ |
| 51 | |
| 52 | extern int sw_link(int /*argc*/, char */*argv*/[]); |
| 53 | extern int sw_snap(int /*argc*/, char */*argv*/[]); |
| 54 | |
| 55 | #ifdef CMD_LINK |
| 56 | static cmd cmd_snap = { |
| 57 | CMD_LINK, "snaplink", sw_snap, |
| 58 | "snaplink FILE...\n\ |
| 59 | Turns links in link trees into real separate files. Each file\n\ |
| 60 | listed becomes a regular file in each of the architecture symlink\n\ |
| 61 | trees. Also works even if the trees aren't there, to propagate\n\ |
| 62 | files. Honours the `--arch' build flag, and the `only-arch'\n\ |
| 63 | settings.\n" |
| 64 | }; |
| 65 | static cmd cmd_link = { |
| 66 | &cmd_snap, "linktree", sw_link, |
| 67 | "linktree\n\ |
| 68 | Creates a symbolic link tree mirroring the current directory and\n\ |
| 69 | its subdirectories for each architecture which should be built.\n\ |
| 70 | Honours the `--arch' build flag, and the `only-arch' settings.\n" |
| 71 | }; |
| 72 | # undef CMD_LINK |
| 73 | # define CMD_LINK &cmd_link |
| 74 | #endif |
| 75 | |
| 76 | /*----- That's all, folks -------------------------------------------------*/ |
| 77 | |
| 78 | #ifdef __cplusplus |
| 79 | } |
| 80 | #endif |
| 81 | |
| 82 | #endif |