Browse Source

overlay: introduced .rm file type, to delete targets

user/chris/test/arm
Alejandro Mery 13 years ago
parent
commit
806d0e5f17
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      lib/overlay/overlay-functions.in

+ 11
- 3
lib/overlay/overlay-functions.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/overlay/overlay-functions.in
# Copyright (C) 2007 - 2010 The OpenSDE Project
# Copyright (C) 2007 - 2012 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -19,7 +19,7 @@ overlay_get_type() {
case "$ext" in
sh|exec) echo "exec" ;;
txt|patch|ln|bin)
txt|patch|ln|bin|rm)
echo "$ext" ;;
*) # and skip anything else
;;
@ -97,12 +97,20 @@ overlay_apply() {
$echo_status "injecting $target -> $ref"
ln -snf "$ref" "$xtarget"
;;
rm)
$echo_status "removing $target"
rm -f "$xtarget"
;;
patch)
$echo_status "overlay: patching $target"
rock_substitute "$file" | patch $patchopt "$xtarget"
;;
esac
[ "$type" = "patch" ] || add_flist "$xtarget"
# flist hackery... needed?
case "$type" in
patch|rm) ;;
*) add_flist "$xtarget" ;;
esac
done
}

Loading…
Cancel
Save