disarchive.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!@GUILE@ \
  2. --no-auto-compile -e main -L @moddir@ -C @ccachedir@ -s
  3. !#
  4. ;;; Disarchive
  5. ;;; Copyright © 2020, 2021 Timothy Sample <samplet@ngyro.com>
  6. ;;;
  7. ;;; This file is part of Disarchive.
  8. ;;;
  9. ;;; Disarchive is free software: you can redistribute it and/or modify
  10. ;;; it under the terms of the GNU General Public License as published by
  11. ;;; the Free Software Foundation, either version 3 of the License, or
  12. ;;; (at your option) any later version.
  13. ;;;
  14. ;;; Disarchive is distributed in the hope that it will be useful,
  15. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. ;;; GNU General Public License for more details.
  18. ;;;
  19. ;;; You should have received a copy of the GNU General Public License
  20. ;;; along with Disarchive. If not, see <http://www.gnu.org/licenses/>.
  21. (use-modules (disarchive scripts assemble)
  22. (disarchive scripts disassemble)
  23. (ice-9 match))
  24. (define main
  25. (match-lambda
  26. ((_ "assemble" args ...) (apply assemble-main args))
  27. ((_ "disassemble" args ...) (apply disassemble-main args))
  28. (_ (display "Usage: disarchive assemble SPECIFICATION OUTPUT\n")
  29. (display " | disarchive disassemble FILENAME\n"))))
  30. ;;; Local Variables:
  31. ;;; mode: scheme
  32. ;;; End: