Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
521 B

  1. #!/bin/bash
  2. # set configurations that will be "sticky" on this system,
  3. # surviving npm self-updates.
  4. CONFIGS=()
  5. i=0
  6. # get the location of this file.
  7. unset CDPATH
  8. CONFFILE=$(cd $(dirname "$0"); pwd -P)/npmrc
  9. while [ $# -gt 0 ]; do
  10. conf="$1"
  11. case $conf in
  12. --help)
  13. echo "./configure --param=value ..."
  14. exit 0
  15. ;;
  16. --*)
  17. CONFIGS[$i]="${conf:2}"
  18. ;;
  19. *)
  20. CONFIGS[$i]="$conf"
  21. ;;
  22. esac
  23. let i++
  24. shift
  25. done
  26. for c in "${CONFIGS[@]}"; do
  27. echo "$c" >> "$CONFFILE"
  28. done