]> cygwin.com Git - cygwin-apps/setup.git/blame - postinstall.cc
2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
[cygwin-apps/setup.git] / postinstall.cc
CommitLineData
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
20static 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
34static void
8e9aa511 35run_script_in_etc_postinstall (char *fname, unsigned int size)
f57c332f 36{
8e9aa511 37 run_script ("/etc/postinstall/", fname);
f57c332f
DD
38}
39
f57c332f 40void
ab57ceaa 41do_postinstall (HINSTANCE h, HWND owner)
f57c332f
DD
42{
43 next_dialog = 0;
8e9aa511 44 init_run_script ();
85b43844 45 SetCurrentDirectory (get_root_dir ());
8e9aa511 46 find (cygpath ("/etc/postinstall", 0), run_script_in_etc_postinstall);
f57c332f 47}
This page took 0.031089 seconds and 5 git commands to generate.