diff options
author | Frederik “Freso” S. Olesen | 2016-05-19 03:24:27 +0200 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2016-05-19 03:24:27 +0200 |
commit | fd8673374d4135a0b59d16f4cf9a67e6d16071c5 (patch) | |
tree | a0aac679c1515d99cd239ab9b71981aaf975f4d9 | |
parent | ee45bab4365601cc2eb4380ac4b4895ece9e0c13 (diff) | |
download | aur-fd8673374d4135a0b59d16f4cf9a67e6d16071c5.tar.gz |
gdatafs: Replace "if grep" with improved `find`.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu May 19 01:08:31 UTC 2016 +# Thu May 19 01:24:27 UTC 2016 pkgbase = gdatafs pkgdesc = FUSE implementation that mounts Picasa, YouTube, and Google Docs on your filesystem pkgver = 1.0.2 @@ -16,10 +16,8 @@ arch=('any') package() { cd "$srcdir"/gdatafs - find . -type f | sed -e 's/\.\///g' | while read file; do - if [ $(echo "$file" | grep '.svn' -i -c) = 0 -a $(echo "$file" | grep '.project' -i -c) = 0 -a $(echo "$file" | grep '.classpath' -i -c) = 0 -a $(echo "$file" | grep 'src' -i -c) = 0 ]; then - install -D "$file" "$pkgdir"/opt/gdatafs/"$file" - fi + find . -type f -not \( -path "*/.svn/*" -o -path "*/.project" -o -path "*/.classpath" -o -path "*/src*/*" \) | sed -e 's/\.\///g' | while read file; do + install -D "$file" "$pkgdir"/opt/gdatafs/"$file" done install -Dm755 "$srcdir"/gdatafs.sh "$pkgdir"/usr/bin/gdatafs } |