lördag 7 mars 2015

linux - gem2deb from gem list

# you need to install gem2deb
# sudo apt-get install gem2deb
mkdir gem2deb
cd gem2deb
gem list > installed_gem
sudo awk '{print "gem2deb "$0" "}'  installed_gem > tmp_gem_list
# remove everything betwen ()
echo '(F/.M/d h)' | sed 's/(.*)//' tmp_gem_list > ready_gem2deb
rm installed_gem && rm tmp_gem_list
sudo sh ready_gem2deb

Inga kommentarer: