root/trunk/freewrt/tools/nfotizer/filedefs.c
| Revision 2100, 1.8 kB (checked in by n0-1, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* nfotizer - split information given in info.nfo files into several places. |
| 2 | * Copyright (C) 2007 Phil Sutter <n0-1@freewrt.org> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along |
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 17 | */ |
| 18 | #include "nfotizer.h" |
| 19 | |
| 20 | /* This is a typical file content definition. |
| 21 | * Field 0: The separator used for defining the placeholders. |
| 22 | * Field 1: The name of the file. |
| 23 | * Field 2: The format of the file. */ |
| 24 | const char *ipkg[] = { "#", "#NAME#.control", |
| 25 | "Package: #NAME#\n" |
| 26 | "Priority: #PRIO#\n" |
| 27 | "Section: #SECTION#\n" |
| 28 | "Depends: #DEPENDS#\n" |
| 29 | "Description: #DESCR_LINE#\n" |
| 30 | }; |
| 31 | const char *config[] = { "#", "Config.in", |
| 32 | "config #SYM#\n" |
| 33 | "\t#SYM_SCOPE# \"#NAME# .......................... #DESCR_LINE#\"\n" |
| 34 | "\tdefault #SYM_DEFAULT#\n" |
| 35 | "\thelp\n" |
| 36 | "#DESCR#\n" |
| 37 | }; |
| 38 | const char *makefile[] = { "@", "vars.mk", |
| 39 | "PKG_NAME:= @NAME@\n" |
| 40 | "PKG_VERSION:= @VERSION@\n" |
| 41 | "PKG_RELEASE:= @RELEASE@\n" |
| 42 | "PKG_MD5SUM:= @SRC_MD5@\n" |
| 43 | "PKG_INIT:= @INIT_NUM@\n" |
| 44 | "\n" |
| 45 | "PKG_SOURCE_URL:= @SRC_URLS@\n" |
| 46 | "PKG_SOURCE:= @SRC_NAME@\n" |
| 47 | }; |
| 48 | |
| 49 | /* To enable generating of a file defined above, add it to this variable: */ |
| 50 | const char **filedefs[] = { ipkg, config, makefile, NULL }; |
Note: See TracBrowser for help on using the browser.


