summaryrefslogtreecommitdiff
path: root/merge-helpers/prepend
blob: 454a5fab878be2a057fa34daade73de12677fb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

if [ ! -r ChangeLog ] ; then
  echo ChangeLog does not exist
  exit 1
fi

if [ $# -ne 1 ] ; then
  echo no file to prepend to ChangeLog specified
  exit 1
fi

if [ ! -r $1 ] ; then
  echo $1 does not exist so can not be prepended to ChangeLog
  exit 1
fi

mv ChangeLog XXX
cat $1 XXX > ChangeLog
rm -f XXX
exit 0