summaryrefslogtreecommitdiff
path: root/dselect/mkcurkeys.pl
AgeCommit message (Collapse)AuthorFilesLines
2014-12-23dselect: Use a matching group instead of ${^MATCH} in s///Guillem Jover1-1/+1
It seems that this is not supported or does not work in perl 5.14.0, although it should be since 5.10.0. Switch to a group matching to allow using older perl version from stable.
2014-10-06scripts: Use named variables instead of using the topic variableGuillem Jover1-20/+25
Switch code that uses roughly more explicit instances of the topic variable than implicit ones. Addresses BuiltinFunctions::ProhibitUselessTopic. Warned-by: perlcritic
2014-05-17perl: Do not use global match variablesGuillem Jover1-6/+6
Fixes Variables::ProhibitMatchVars. Warned-by: perlcritic
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
2013-12-05dselect: Use C++11 nullptr instead of 0 or NULLGuillem Jover1-1/+1
It is way more descriptive, and has a better type. Check for C++11 compiler support and fallback nullptr to 0 if unavailable.
2013-12-04perl: Switch to use low precedence boolean operators for error checksGuillem Jover1-8/+6
This will make it safe to remove parenthesis around builtins.
2013-12-04perl: Try to avoid boolean operators after predicates on error checksGuillem Jover1-4/+7
Using boolean operators after predicates for error checking makes the code flow slightly confusing, do that only after actions, to check if they succeeded and error out otherwise.
2013-11-23perl: Do not allow hard tabs anywhere other than leading positionGuillem Jover1-2/+2
Fixes CodeLayout::ProhibitHardTabs. Warned-by: perlcritic
2013-05-08perl: Use my-style lexical loop iterator variablesGuillem Jover1-1/+1
The variables used on a foreach loop are local to that block, so if we wanted to use it after the loop is finished the last value would be gone. Fixes Variables::RequireLexicalLoopIterators. Warned-by: perlcritic
2013-05-08dselect: Change mkcurkeys p() to take explicit key and value argumentsGuillem Jover1-8/+7
2013-05-08perl: Unify regex delimiters to //, {} or <>Guillem Jover1-1/+1
Fixes RegularExpressions::ProhibitUnusualDelimiters. Warned-by: perlcritic
2013-05-08perl: Use the .. operator instead of C-style for loopsGuillem Jover1-3/+5
Fixes ControlStructures::ProhibitCStyleForLoops. Warned-by: perlcritic
2013-05-04Do not use double-quotes on strings that do not need interpolationGuillem Jover1-2/+2
Using double-quotes imposes a small performance penalty as the perl parser needs to check if any interpolation is needed. Use double-quotes only when the string contains single-quotes. Ideally we'd use double-quotes too for escaped meta-characters that might otherwise be confusing to immediately see if they need interpolation or not, but the policy does not (currently) allow to ignore these. Fixes ValuesAndExpressions::ProhibitInterpolationOfLiterals. Warned-by: perlcritic
2013-04-28Use proper variables instead of barewords for filehandlesGuillem Jover1-6/+6
Fixes InputOutput::ProhibitBarewordFileHandles. Warned-by: perlcritic
2013-04-24Use three-argument form of open in perl codeGuillem Jover1-2/+2
Fixes InputOutput::ProhibitTwoArgOpen. Warned-by: perlcritic
2013-04-19test: Add new perl critic test caseGuillem Jover1-0/+2
Mark false positives in the perl code so that perlcritic ignores them, and so that they are documented in-place.
2013-04-19dselect: Use strict and warnings in perl scriptsGuillem Jover1-0/+3
2013-04-19dselect: Declare perl variables with our or myGuillem Jover1-5/+13
2013-04-19dselect: Use looks_like_number() instead of coercion to numberGuillem Jover1-3/+5
2013-04-19dselect: Use new style perl function callsGuillem Jover1-6/+8
2009-11-08Clean up perl shebang lineGuillem Jover1-1/+1
Use “use warnings” instead of passing “-w”. Remove “--” parameters. Remove shebangs from perl modules. Remove spaces after “#!”.
2009-11-08Unify text in license headersGuillem Jover1-5/+5
Add a missing “of the License” after “version 2”. Move “but” and “GNU” at the end of line to the next line. This matches more closely the paragraph found in the license text for the GPL version 2.
2009-11-08Replace FSF address by pointing to the gnu.org URLGuillem Jover1-3/+2
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases the outdated FSF address, which is way more stable, as the latter has changed several times in the past.
2008-06-30Switch to use UTF-8 copyright symbol and add missing onesGuillem Jover1-1/+1
Some 'Copyright <year>' entries didn't have a copyright symbol. Add it and switch the rest from '(C)' to '©', but we don't do this on program output which for now should remain pure ascii.
2002-05-06Perl sucks, fix Ian's email addressWichert Akkerman1-1/+1
2002-05-06Update Ian Jacksons' email addressWichert Akkerman1-1/+1
2001-07-16Remove Linux referencesWichert Akkerman1-1/+1
1999-01-29dpkg 1.4.1Guy Maor1-5/+6
1996-04-04dpkg (1.1.4); priority=MEDIUMIan Jackson1-0/+121
* Allow overwriting of conflicting packages being removed. (Bug#2614.) * a.out control file says Pre-Depends: libc4 | libc. (Bug#2640.) * ELF control file and libc dependencies changed to use finalised scheme. * ELF control file and libc dependencies for i386 only. (Bug#2617.) * Guidelines say use only released libraries and compilers. * Install wishlist as /usr/doc/dpkg/WISHLIST. * Remove spurious entries for Guidelines in info dir file. * dpkg-deb --build checks permissions on control (DEBIAN) directory. * Spaces in control file fields not copied by dpkg-split. (Bug#2633.) * Spaces in split file part control data ignore. (Bug#2633.) * Portability fixes, including patch from Richard Kettlewell. * Fixed minor configure.in bug causing mangled GCC -W options. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 4 Apr 1996 01:58:40 +0100