diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-08 02:49:09 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-08 02:49:09 -0500 |
commit | dfaeb6bb2ca8311ac418a16c30006eb7d0534d71 (patch) | |
tree | 227f127eb1a35e20689b1b60b4dbe5255c7e9a7f /scripts | |
parent | 11ba7a0e8a253bff53778688ee174f42c1513738 (diff) | |
parent | 87072ff63907ce6040be7e59b9b07fd891a8254a (diff) | |
download | pacman-dfaeb6bb2ca8311ac418a16c30006eb7d0534d71.tar.xz |
Merge remote-tracking branch 'allan/working'
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 2 | ||||
-rw-r--r-- | scripts/pacman-key.sh.in | 14 | ||||
-rw-r--r-- | scripts/pkgdelta.sh.in | 2 |
3 files changed, 11 insertions, 7 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 7c64e81c..fd9b20d1 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -47,7 +47,7 @@ edit = sed \ -e 's|@SIZECMD[@]|$(SIZECMD)|g' \ -e 's|@SEDINPLACE[@]|$(SEDINPLACE)|g' \ -e 's|@DUPATH[@]|$(DUPATH)|g' \ - -e 's|@configure_input[@]|Generated from $@.in; do not edit by hand.|g' + -e 's|@configure_input[@]|Generated from $@.sh.in; do not edit by hand.|g' ## All the scripts depend on Makefile so that they are rebuilt when the ## prefix etc. changes. Use chmod -w to prevent people from editing the diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 80f8bc7c..20ec20fa 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -87,12 +87,12 @@ There is NO WARRANTY, to the extent permitted by law.\n")" # 'key', 'equal sign' and 'value' can be surrounded by random whitespace # Usage: get_from "$file" "$key" # returns the value for the first matching key in the file get_from() { - while read key _ value; do - if [[ $key = $2 ]]; then - echo "$value" - break - fi - done < "$1" + while read key _ value; do + if [[ $key = $2 ]]; then + echo "$value" + break + fi + done < "$1" } reload_keyring() { @@ -328,3 +328,5 @@ case "${command}" in error "$(gettext "Unknown command:") $command" usage; exit 1 ;; esac + +# vim: set ts=2 sw=2 noet: diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in index ecca4277..d17b41d2 100644 --- a/scripts/pkgdelta.sh.in +++ b/scripts/pkgdelta.sh.in @@ -163,3 +163,5 @@ if ! type xdelta3 &>/dev/null; then fi create_xdelta "$1" "$2" + +# vim: set ts=2 sw=2 noet: |