view more/alt-patches.sh @ 1499:461d70885b17

Fix toybox build script. CROSS_COMPILE needs to be an environment variable, not a make variable (otherwise it doesn't get automatically exported).
author Rob Landley <rob@landley.net>
date Sat, 04 Feb 2012 13:29:02 -0600
parents b5095f9eaacf
children
line wrap: on
line source

#!/bin/bash

# Setup alt-$PACKAGE-*.patch symlinks for a package

if [ $# -eq 0 ]
then
  echo "usage: more/alt-patches.sh PACKAGE"
  exit 1
fi

# Remove existing symlinks, but keep files

for i in sources/patches/alt-$1-*.patch
do
  [ -L $i ] && rm $i
done

for i in $(cd sources/patches; ls $1-*.patch)
do
  ln -s $i sources/patches/alt-$i
done