1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-30 04:10:42 +02:00
fpm/test/gem-deb.test

18 lines
396 B
Bash

#!/bin/bash
RAILS_VERSION=3.1.0
run() {
# Force the gem installation path to match the one of the expected output
export GEM_HOME=/usr/lib/ruby/gems/1.8
fpm -s gem -t deb -v $RAILS_VERSION rails
file=rubygem-rails_${RAILS_VERSION}_all.deb
dpkg -c $file | awk '{$1=$2=$3=$4=$5="";print}' | sed -e 's/^ *//' | sort > $output
rm $file
}
clean() {
rm rails-${RAILS_VERSION}.gem
}