Ticket #8763: portdepclean.tcl

File portdepclean.tcl, 492 bytes (added by jmroot (Joshua Root), 16 years ago)

a simple script to run clean_dep_map

Line 
1#!/bin/sh
2# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
3# Run the Tcl interpreter \
4exec @TCLSH@ "$0" "$@"
5# portdepclean.tcl
6
7# Removes any duplicate entries from the MacPorts registry's dependency map.
8
9catch {source \
10    [file join "@TCL_PACKAGE_DIR@" macports1.0 macports_fastload.tcl]}
11package require macports
12
13registry::open_dep_map
14registry::clean_dep_map
15registry::write_dep_map
16
17exit 0