]>
Commit | Line | Data |
---|---|---|
f57c332f | 1 | /* |
31324d15 | 2 | * Copyright (c) 2000, 2001 Red Hat, Inc. |
f57c332f DD |
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 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by DJ Delorie <dj@cygnus.com> | |
13 | * | |
14 | */ | |
15 | ||
16 | /* The purpose of this file is to run all the post-install scripts | |
17 | in their various forms. */ | |
18 | ||
b24c88b3 RC |
19 | #if 0 |
20 | static const char *cvsid = | |
21 | "\n%%% $Id$\n"; | |
22 | #endif | |
8507f105 | 23 | |
f57c332f DD |
24 | #include "win32.h" |
25 | ||
26 | #include <stdlib.h> | |
f57c332f DD |
27 | |
28 | #include "state.h" | |
29 | #include "dialog.h" | |
30 | #include "find.h" | |
a351e48c | 31 | #include "mount.h" |
8e9aa511 | 32 | #include "script.h" |
f57c332f DD |
33 | |
34 | static void | |
8e9aa511 | 35 | run_script_in_etc_postinstall (char *fname, unsigned int size) |
f57c332f | 36 | { |
8e9aa511 | 37 | run_script ("/etc/postinstall/", fname); |
f57c332f DD |
38 | } |
39 | ||
f57c332f | 40 | void |
ab57ceaa | 41 | do_postinstall (HINSTANCE h, HWND owner) |
f57c332f DD |
42 | { |
43 | next_dialog = 0; | |
8e9aa511 | 44 | init_run_script (); |
3c054baf | 45 | SetCurrentDirectory (get_root_dir ().cstr_oneuse()); |
1ac649ed | 46 | find (cygpath ("/etc/postinstall"), run_script_in_etc_postinstall); |
f57c332f | 47 | } |