Skip to content
Snippets Groups Projects
Commit a27e3d6b authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Delete the bash implementation of patch_all

Since all users are converted to the Makefile version, this is safe.
parent 5ee65cb1
No related branches found
No related tags found
No related merge requests found
...@@ -17,29 +17,6 @@ ...@@ -17,29 +17,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with lipck. If not, see <http://www.gnu.org/licenses/>. # 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() function install_debs()
{ {
DEB_DIR="$1" DEB_DIR="$1"
......
...@@ -30,7 +30,7 @@ test -n "$ARCH" || { echo "$(basename $0): fatal error: no architecture specifi ...@@ -30,7 +30,7 @@ test -n "$ARCH" || { echo "$(basename $0): fatal error: no architecture specifi
echo echo
echo "==> Fetching packages for offline repository for $ARCH" 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 if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then
source "$SCRIPT_DIR/scripts/common_functions.sh" source "$SCRIPT_DIR/scripts/common_functions.sh"
fi fi
......
...@@ -23,7 +23,7 @@ set -e ...@@ -23,7 +23,7 @@ set -e
SCRIPT_DIR="/remaster" SCRIPT_DIR="/remaster"
CONTRIB_DIR="$SCRIPT_DIR/contrib/" CONTRIB_DIR="$SCRIPT_DIR/contrib/"
#source common functions (e.g. patch_all) #source common functions
if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then
source "$SCRIPT_DIR/scripts/common_functions.sh" source "$SCRIPT_DIR/scripts/common_functions.sh"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment