summaryrefslogtreecommitdiffstats
path: root/src/oh-applypatches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/oh-applypatches.sh')
-rw-r--r--src/oh-applypatches.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/oh-applypatches.sh b/src/oh-applypatches.sh
index a688f32..ac51da9 100644
--- a/src/oh-applypatches.sh
+++ b/src/oh-applypatches.sh
@@ -19,6 +19,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+. @@LIBDIR@@/opkhelper/messages
+
print_usage()
{
printf 'Usage: %s\n' "$1"
@@ -34,7 +36,7 @@ applied=false
if [ -d ../patches ]; then
# Iterate over patches ordered alphabetically by name.
for patch in $(ls -1 ../patches | sort); do
- printf 'oh-applypatches: Applying patch "%s"...\n' "${patch}"
+ oh_info 'Applying patch "%s"...' "${patch}"
patch -N -p 1 -u -d src -i "../../patches/${patch}" || exit 1
applied=true
done
@@ -42,5 +44,5 @@ fi
# Provide output even if patches directory didn't exist or had no visible files.
if ! ${applied}; then
- printf 'oh-applypatches: No patches to be applied.\n'
+ oh_info 'No patches to be applied'
fi