Mercurial > hg > aboriginal
annotate more/alt-patches.sh @ 1524:60ef4cdee782
Oops, forgot to check in patch removed by busybox upgrade.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 12 May 2012 21:35:58 -0500 |
parents | b5095f9eaacf |
children |
rev | line source |
---|---|
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Setup alt-$PACKAGE-*.patch symlinks for a package |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 if [ $# -eq 0 ] |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 then |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 echo "usage: more/alt-patches.sh PACKAGE" |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 exit 1 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 fi |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 # Remove existing symlinks, but keep files |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 for i in sources/patches/alt-$1-*.patch |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 do |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 [ -L $i ] && rm $i |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 done |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 for i in $(cd sources/patches; ls $1-*.patch) |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 do |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 ln -s $i sources/patches/alt-$i |
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).
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 done |