source: config-package-dev/encode @ e083700

Revision e083700, 598 bytes checked in by Geoffrey Thomas <geofft@…>, 12 years ago (diff)
Create Debian::Debhelper::config_package to share encode/decode functions This will be used both by dh_configpackage and the standalone encode and decode scripts (converted in this commit).
  • Property mode set to 100755
Line 
1#!/usr/bin/perl
2# Encode name of a file in a Debian package name.
3#
4# The purpose of this encoding is to cause Debian configuration
5# packages (potentially from different sites) that divert the same
6# configuration file to conflict with each other.  Thus, it is
7# important that all sites using this Debian configuration package
8# system use this encoding.
9#
10# This encoding is intended to be human-readable, so that users can
11# determine the cause of conflicts between different configuration
12# packages.
13
14use strict;
15use warnings;
16use Debian::Debhelper::config_package;
17 
18print encode($ARGV[0]);
Note: See TracBrowser for help on using the repository browser.