Mercurial > hg > aboriginal
view more/alt-patches.sh @ 1480:b5095f9eaacf
Remove alt-patch symlinks from source control, instead add more/alt-patches.sh to setup alt-package-*.patch symlinks (you can then delete any you don't want).
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 28 Dec 2011 15:58:43 -0600 |
parents | |
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