-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-05-08 14:42, Jesse Juhani Jaara wrote:
ti, 2012-05-08 kello 18:16 +0200, Jorge Barroso kirjoitti: <snip> All that could be simplified into --------------------------------------- 1. cd "${srcdir}" 2. tar xf data.tar.gz 3. mkdir -p "${pkgdir}/usr/" 4. cp -r "${srcdir}/./usr/local/bin" "${pkgdir}/usr/bin" 5. cp -r "${srcdir}/./usr/share" "${pkgdir}/usr/share" 6. 7. chmod +x "${pkgdir}/usr/bin"/* 8. sed 's|usr/local|usr|' -i "${pkgdir}/usr/bin"/* 9. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/applications/LDM.desktop" --------------------------------------- <snip>
Instead of mkdir, cp and chmod, use "install -D -m 755 path/to/source path/to/destination" "-D" creates the directory. "-m" set the file mode (like chmod) See man install for more info. - -- Hugo Osvaldo Barrera -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPz7QtAAoJEIc88gcb++1EerMH/jN33AhQ9H2RNZFbLPta/MsC 1ZqbRw0vMb3ejHggBgSYIsOUGJ72MEP6j1OWyobUcM43tKntlenmjjyKgkcj6fKT ta2WjwgZMxh5W2dUBVJcuvjhQOWdazNt5mt/QFOUZmvMn0lu3OT1a3c/wnP+Dctr m7BeEv1fe3UGJduKsVSNv3o0bhDTI8Ju16Uayf8e9gnvxC63jMchSdfF/Ju2CaMj ouhpS2djeRtBb6uTm2zgbKKh4vE7NVVcUbnOqwTJWVk1xuC9sjSof8wPyEKCTuqo u3LIy2cruHBikiMXLHkTxYLw0Ensmgu/bodRx4T3iqav39ViQXQ7QLu1rlm3v0Q= =sOS4 -----END PGP SIGNATURE-----