This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Passed a perlbrew perl it will setup the environment | |
# e.g. ./env.sh perl-5.12.4 | |
# By Perl convention the first three components are named 'revision', 'version' | |
# and 'subversion'. local::lib will use the 'version' to set the perl library | |
# path | |
# TODO | |
# ---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /tmp/try.txt | |
export FOO=foo1 | |
export BAR=bar1 | |
export FOO=foo2 | |
export FOO=${FOO}:${BAR} | |
$ eval $(cat /tmp/try.txt) | |
$ echo $FOO | |
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Have 2-3 perl modules in a lib dir at the top level of a git repo along with a bin dir and some other application dirs. The entire dir structure below exists in dev and is delivered to other target envs - tst and prd. | |
$ ls | |
lib/ | |
bin/ | |
t/ | |
conf/ | |
build/ | |
app/darkpan | |
app/perl5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[kafka@poma00 kafka-0.7.2]$ whoami | |
kafka | |
[kafka@poma00 kafka-0.7.2]$ pwd | |
/usr/local/kafka-0.7.2 | |
[kafka@poma00 kafka-0.7.2]$ ./sbt update | |
Getting Scala 2.7.7 ... | |
:: problems summary :: | |
:::: WARNINGS | |
module not found: org.scala-lang#scala-compiler;2.7.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore everything | |
/* | |
# But not these files... | |
!/.*alias | |
!/.bashrc* | |
!/.perltidyrc | |
!/.func | |
!/.pcmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The below yeilds a Task::RP::Foo that does contain the application code in Foo/bin and Foo/lib. How to elimiate the lib and bin dirs and their files from the dist and still get AutoPrereqs? | |
name = Task-RP-Foo | |
author = Joe Crotty <[email protected]> | |
license = None | |
copyright_holder = Return Path, Inc. | |
copyright_year = 2013 | |
version = 1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clean shell for Perl vars | |
$ perl -V:version | |
version='5.14.3'; | |
$ which perl | |
perl is /usr/local/perlbrew/perls/perl-5.14.3/bin/perl | |
$ env | grep PERL | |
PERLBREW_VERSION=0.64 | |
PERLBREW_PERL=perl-5.14.3 | |
PERLBREW_BASHRC_VERSION=0.64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
txsi() { | |
local session=foo | |
tmux new-session -d -s "$session" | |
tmux select-window -t "$session":0 | |
tmux split-window -h | |
tmxu select-pane -t 0 | |
tmux synchronize-panes on | |
tmux send-keys "export TERM=screen-256color" C-m | |
tmux synchronize-panes off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat cpanfile | |
requires 'perl', '5.10.1'; | |
requires 'DBI'; | |
requires 'DateTime'; | |
requires 'DateTime::Format::Strptime'; | |
requires 'Digest::MD5'; | |
requires 'Encode'; | |
requires 'File::Find::Rule'; | |
requires 'Getopt::Long'; | |
requires 'JSON'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ./fpm-perl-5.16.3 | |
#!/bin/env bash | |
# Note, this will build a Perl RPM based on what's in /opt/perls/perl-$VERSION | |
# and package it for install to /usr/local/perls. | |
VERSION="5.16.3" | |
ITER=1 | |
fpm -s dir -t rpm\ |
OlderNewer