diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2013-11-25 12:23:31 +0100 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2013-11-25 13:11:59 +0100 |
commit | 926b93d445e92be03e62efcd742b2ac88f0d96ed (patch) | |
tree | a9e1e616e37f2f7187d0b0ab2d8e83b3ad8eed63 /audio/aacgain/aacgain.SlackBuild | |
parent | 7bc7feac90a3966ebaea1b1ad87431764a560344 (diff) | |
download | slackbuilds-926b93d445e92be03e62efcd742b2ac88f0d96ed.tar.gz |
various: Replace chmod command with find command from template.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'audio/aacgain/aacgain.SlackBuild')
-rw-r--r-- | audio/aacgain/aacgain.SlackBuild | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/audio/aacgain/aacgain.SlackBuild b/audio/aacgain/aacgain.SlackBuild index 3764fb457d..ebcaebb60c 100644 --- a/audio/aacgain/aacgain.SlackBuild +++ b/audio/aacgain/aacgain.SlackBuild @@ -69,7 +69,11 @@ mkdir -p mp3gain cd mp3gain unzip $CWD/mp3gain-1_5_2-src.zip chown -R root:root . - chmod -R u+w,go+r-w,a-s . + find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cd - #unpack faad2 @@ -78,7 +82,11 @@ tar xvf $CWD/faad2-2.7.tar.bz2 mv faad2-2.7 faad2 cd faad2 chown -R root:root . - chmod -R u+w,go+r-w,a-s . + find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cd - #unpack mp4v2 @@ -87,7 +95,11 @@ tar xvf $CWD/mp4v2-trunk-r355.tar.bz2 mv mp4v2-trunk-r355 mp4v2 cd mp4v2 chown -R root:root . - chmod -R u+w,go+r-w,a-s . + find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cd - #unpack aacgain @@ -95,7 +107,11 @@ rm -rf $PRGNAM tar xvf $CWD/${PRGNAM}_1_9.tar.bz2 cd $PRGNAM chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # The new patch program forces us to change a little how patches are applied cd ../mp3gain |