diff options
author | Sukbeom Kim | 2016-04-09 04:30:39 +0800 |
---|---|---|
committer | Sukbeom Kim | 2016-04-09 04:30:39 +0800 |
commit | 9130ecc302776ae4d83e37e6a54fe336833e3ac0 (patch) | |
tree | cf60a0c867d40d6e0f71af205a85e5b05f08e3ac | |
parent | f9812832c2099ac7bd225453ccb360ffa02e28a6 (diff) | |
download | aur-9130ecc302776ae4d83e37e6a54fe336833e3ac0.tar.gz |
fix sed command usage
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -12,9 +12,10 @@ md5sums=('SKIP') package() { cd "$srcdir/$pkgname" - - sed -e 's/\(CONFIG_FILE=\)\(.*\)/\1\/usr\/local\/etc\/config_shortcut/g' bin_shortcut - sed -e 's/\(PATH_FILE=\)\(.*\)/\1\/usr\/local\/etc\/path_shortcut/g' bin_shortcut + cp bin_shortcut{,.bak} + + sed -i bin_shortcut.bak -e 's/\(CONFIG_FILE=\)\(.*\)/\1\/usr\/local\/etc\/config_shortcut/g' bin_shortcut + sed -i bin_shortcut.bak -e 's/\(PATH_FILE=\)\(.*\)/\1\/usr\/local\/etc\/path_shortcut/g' bin_shortcut install -Dm755 bin_shortcut ${pkgdir}/usr/local/bin/bin_shortcut install -Dm644 config_shortcut ${pkgdir}/usr/local/etc/config_shortcut |