]> cygwin.com Git - cygwin-apps/setup.git/blob - postinstall.cc
2002-04-27 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / postinstall.cc
1 /*
2 * Copyright (c) 2000, 2001 Red Hat, Inc.
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
19 #if 0
20 static const char *cvsid =
21 "\n%%% $Id$\n";
22 #endif
23
24 #include "win32.h"
25
26 #include <stdlib.h>
27
28 #include "state.h"
29 #include "dialog.h"
30 #include "find.h"
31 #include "mount.h"
32 #include "script.h"
33
34 static void
35 run_script_in_etc_postinstall (char *fname, unsigned int size)
36 {
37 run_script ("/etc/postinstall/", fname);
38 }
39
40 void
41 do_postinstall (HINSTANCE h, HWND owner)
42 {
43 next_dialog = 0;
44 init_run_script ();
45 SetCurrentDirectory (get_root_dir ().cstr_oneuse());
46 find (cygpath ("/etc/postinstall"), run_script_in_etc_postinstall);
47 }
This page took 0.036106 seconds and 5 git commands to generate.