view scripts/mk-pkg-add @ 20476:b22528fd3deb

Add placeholder functions for save_ascii, save_binary for octave_java (bug #45694). * ov-java.h: (save_ascii, load_ascii, save_binary, load_binary): New function prototypes overriding defaults in ov.h. * ov-java.cc (save_ascii, save_binary): New functions emit warning about inability to save java objects, and then return true so that other variables can be saved. * ov-java.cc (load_ascii, load_binary): New functions silently skip over null octave_java elements in a file produced by save_ascii() or save_binary().
author Rik <rik@octave.org>
date Thu, 13 Aug 2015 22:00:02 -0700
parents 4197fc428c7d
children
line wrap: on
line source

#! /bin/sh
#
# Copyright (C) 2002-2015 John W. Eaton
#
# This file is part of Octave.
#
# Octave is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# Octave is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with Octave; see the file COPYING.  If not, see
# <http://www.gnu.org/licenses/>.

## Expecting arguments in this order:
##
##  SRCDIR SRCDIR-FILES ... -- LOCAL-FILES ...

set -e

SED=${SED:-'sed'}

prefix="$1/"
shift

for arg
do
  if [ "$arg" = "--" ]; then
    prefix=""
  else
    $SED -n 's/^[#%][#%]* *PKG_ADD: *//p' "$prefix$arg"
  fi
done