2014-08-25 12:59:47 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test util-linux.spec -ot python-libmount.spec ; then
|
|
|
|
echo "util-linux.spec is older than python-libmount.spec. Please merge changes manually and call pre-checkin.sh again."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if test util-linux.changes -ot python-libmount.changes ; then
|
|
|
|
echo "util-linux.changes is older than python-libmount.changes. Please merge changes manually and call pre-checkin.sh again."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test util-linux.spec -ot util-linux-systemd.spec ; then
|
|
|
|
echo "util-linux.spec is older than util-linux-systemd.spec. Please merge changes manually and call pre-checkin.sh again."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if test util-linux.changes -ot util-linux-systemd.changes ; then
|
|
|
|
echo "util-linux.changes is older than util-linux-systemd.changes. Please merge changes manually and call pre-checkin.sh again."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed '
|
|
|
|
s/spec file for package util-linux/spec file for package python-libmount/;
|
|
|
|
/^Name:/s/util-linux/python-libmount/;
|
2014-09-07 11:11:46 +02:00
|
|
|
s/WARNING: After editing this file please/WARNING: Never edit this file!!! Edit util-linux.spec and/
|
2014-08-25 12:59:47 +02:00
|
|
|
' <util-linux.spec >python-libmount.spec
|
|
|
|
|
|
|
|
sed '
|
|
|
|
s/spec file for package util-linux/spec file for package util-linux-systemd/;
|
|
|
|
/^Name:/s/util-linux/util-linux-systemd/;
|
2014-09-07 11:11:46 +02:00
|
|
|
s/WARNING: After editing this file please/WARNING: Never edit this file!!! Edit util-linux.spec and/
|
2014-08-25 12:59:47 +02:00
|
|
|
' <util-linux.spec >util-linux-systemd.spec
|
|
|
|
|
|
|
|
cp -a util-linux.changes python-libmount.changes
|
|
|
|
|
|
|
|
cp -a util-linux.changes util-linux-systemd.changes
|
|
|
|
|
|
|
|
touch util-linux.spec util-linux.changes
|