/* -*-c-*-
*
- * $Id: sw_info.c,v 1.3 1999/06/24 15:51:59 mdw Exp $
+ * $Id: sw_info.c,v 1.6 2004/04/08 01:52:19 mdw Exp $
*
* Maintenance of `.sw-info' files
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sw_info.c,v $
- * Revision 1.3 1999/06/24 15:51:59 mdw
- * Add support for the `sw-precommit' script.
- *
- * Revision 1.2 1999/06/18 18:58:45 mdw
- * Various tidyings.
- *
- * Revision 1.1.1.1 1999/06/02 16:53:35 mdw
- * Initial import.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
env_put(&t, "SW_MAINTAINER", sw.maintainer);
env_put(&t, "SW_DATE", sw.date);
env_put(&t, "SW_ARCHLIST", sw.arch);
- env_put(&t, "SW_PREFIX", sw.prefix);
+ env_put(&t, "SW_PREFIX", PREFIX);
environ = env_export(&t);
/* --- Run the commit check script --- */
execl(PREFIX "/share/sw-precommit", "sw-precommit",
- sw.package, (void *)0);
+ sw.package, (char *)0);
if (errno == ENOENT)
_exit(0);
die(1, "couldn't run " PREFIX "/share/sw-precommit: %s",