Skip to content

Instantly share code, notes, and snippets.

@takahirom
Last active August 31, 2015 14:39
Show Gist options
  • Save takahirom/e6aa7202e245ba5a74f8 to your computer and use it in GitHub Desktop.
Save takahirom/e6aa7202e245ba5a74f8 to your computer and use it in GitHub Desktop.
jardiff command generator
ls -F | grep /|awk '
BEGIN{libraryPrefix="support-v4-"}
NR%2==1 {a=$0;sub("/","",a)}
NR%2==0 {b=$1;sub("/","",b)}
NR%2==0{print "jardiff.py " a "/" libraryPrefix a ".aar " b "/" libraryPrefix b ".aar > "a"-"b".patch"}
NR%2==1&&length(b)!=0{print "jardiff.py " b "/" libraryPrefix b".aar " a "/" libraryPrefix a ".aar > "b"-"a".patch"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment