diff --git a/scripts/common_functions.sh b/scripts/common_functions.sh index 0e6065889563d4e33eafb0aa7e72347b3896af66..615a5aabfb142a3c85e2870dd0d1e0bc0d53e4ef 100644 --- a/scripts/common_functions.sh +++ b/scripts/common_functions.sh @@ -17,29 +17,6 @@ # You should have received a copy of the GNU General Public License # along with lipck. If not, see <http://www.gnu.org/licenses/>. -function patch_all() -{ - PATCH_DIR="$1" - TARGET_DIR="$2" - - if [ ! -d "$PATCH_DIR" ]; then - echo "Nothing to patch here!" - return 0 - fi - - if [ -z "$TARGET_DIR" ]; then - echo "No target directory given, assuming /" - TARGET_DIR="/" - fi - - echo "Patching $TARGET_DIR ..." - for p in "$PATCH_DIR/"* - do - cat "$p" | patch -d "$TARGET_DIR" -p1 - done - echo "done." -} - function install_debs() { DEB_DIR="$1" diff --git a/scripts/fill_offline_repo.sh b/scripts/fill_offline_repo.sh index 408ac6d2be071ef8fcb7fc92c4207fa7506deebc..fc99461413a0d50035985dad4f979ce8365e5b3a 100755 --- a/scripts/fill_offline_repo.sh +++ b/scripts/fill_offline_repo.sh @@ -30,7 +30,7 @@ test -n "$ARCH" || { echo "$(basename $0): fatal error: no architecture specifi echo echo "==> Fetching packages for offline repository for $ARCH" -#source common functions (e.g. patch_all) +#source common functions if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then source "$SCRIPT_DIR/scripts/common_functions.sh" fi diff --git a/scripts/remaster_rootfs.sh b/scripts/remaster_rootfs.sh index 0db90638ec78c9e5334212d09e9d0246d4c8c7bb..f5c1bb4ebc5736ec2bb212397985181adb370642 100755 --- a/scripts/remaster_rootfs.sh +++ b/scripts/remaster_rootfs.sh @@ -23,7 +23,7 @@ set -e SCRIPT_DIR="/remaster" CONTRIB_DIR="$SCRIPT_DIR/contrib/" -#source common functions (e.g. patch_all) +#source common functions if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then source "$SCRIPT_DIR/scripts/common_functions.sh" fi