On 12/10/2015 09:36, Felix Fietkau wrote: >> Sure could use pwclient and ocassionally do, however it does essentially one >> thing >> > only: save me the download step. Yes, I can also save me the click back to >> > the >> > browser to hit accept and can do that via CLI (if I remember the cryptic >> > switches). >> > On top of that now I have to deal with an opaque 5 or 6-digit patch id in >> > my head. > I usually copy the mbox link from patchwork and do this: > wget -O- <link> | git am >
#!/bin/sh wget http://patchwork.ozlabs.org/patch/$1/mbox/ -O $1.patch [ -f $1.patch ] || { echo "unknown patchwork id" exit 1 } git am --3way $1.patch [ $? = 0 ] || { mkdir -p fails cp $1.patch fails/ git am --abort echo applying $1 FAILED } _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel