Skip to content

Instantly share code, notes, and snippets.

@rkleemann
rkleemann / SimpleConfig.pm
Created April 27, 2015 21:13
Simple configuration file parser
use v5.18; # Why 5.18? Because that's what I'm used to.
package SimpleConfig;
use boolean;
use File::Slurp;
use Scalar::Util qw(looks_like_number);
sub parse_line {
#!/bin/bash
sudo apt-get install devscripts debhelper
SOURCE_DIR=$1
if [ -n "$SOURCE_DIR" ]; then
cd ~/sources/$SOURCE_DIR
fi
if ! grep 'Depends:' debian/control \