#!/bin/bash rbasedir=`ls -d r-base/r-base-*` echo Adding changelog entry in $rbasedir cat changelog_entry > changelog_tmp cat $rbasedir/debian/changelog >> changelog_tmp mv changelog_tmp $rbasedir/debian/changelog