MyNixOS website logo
Description

Shell scripts for support of darcs workflow.

This is a collection of Bash shell scripts for support of development using the revision control system Darcs. The scripts are installed in your cabal/share directory, thus you may extend your command search path accordingly.

Within a Darcs working copy you may run:

  • editor `darcs-list-modified`: Open an editor with all files that are modified with respect to the current local repository state.

  • darcs-replace-rec OLD NEW dirOrFileA dirOrFileB: Replace OLD by NEW in all files in dirOrFileA and so on, that contain OLD. This calls darcs replace, that is, the replacements are managed by Darcs as such.

  • darcs-mv-hs src/Data/Special.hs src/Control/Extra.hs: Move the file src/Data/Special.hs to src/Control/Extra.hs and replace the according module name Data.Special by Control.Extra in all modules in directory src and in the cabal file. The first component must be a directory for source files. If you do not have a source directory, you may use ., but then files in _darcs are also addressed, and Darcs will warn you. Nested source directories are not supported.

  • darcs-hub-put pkgname: Create new darcs repository at hub.darcs.net with the Cabal Synopsis as repository summary. The push patches to the newly created repository. pkgname is the name of the remote repository. A common way to run the script is darcs-hub-put `basename $PWD`.

  • darcs-conv-latin-to-utf8 dirOrFile ...: Convert all files from Latin encoding to UTF8 encoding. You may easily adapt the script in order to convert between other encodings. Instead of using non-ASCII encodings you may replace non-ASCII symbols by Haskell string escape codes.

  • darcs-replace-finitemap: Convert old programs from use of FiniteMap to containers:Data.Map.

  • darcs-mv-m3 and darcs-mv-mg are for Modula-3 development. They rename both interface and implementation file of a module and replace module names accordingly.

Metadata

Version

0.1.1

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows