* Generate nar.sh, fetchurl.sh.

This commit is contained in:
Eelco Dolstra 2003-07-18 07:42:57 +00:00
parent b3fc38bf6a
commit ab350eafd2
9 changed files with 32 additions and 27 deletions

10
corepkgs/nar/Makefile.am Normal file
View file

@ -0,0 +1,10 @@
all-local: nar.sh unnar.sh
install-exec-local:
$(INSTALL) -d $(datadir)/fix/nar
$(INSTALL_DATA) nar.fix $(datadir)/fix/nar
$(INSTALL_DATA) nar.sh $(datadir)/fix/nar
$(INSTALL_DATA) unnar.fix $(datadir)/fix/nar
$(INSTALL_DATA) unnar.sh $(datadir)/fix/nar
include ../../substitute.mk

View file

@ -1,5 +0,0 @@
#! /bin/sh
echo "packing $path into $out..."
/nix/bin/nix --dump --file "$path" | bzip2 > $out || exit 1

5
corepkgs/nar/nar.sh.in Normal file
View file

@ -0,0 +1,5 @@
#! /bin/sh
echo "packing $path into $out..."
@bindir@/nix --dump --file "$path" | bzip2 > $out || exit 1

View file

@ -1,4 +0,0 @@
#! /bin/sh
echo "unpacking $nar to $out..."
bunzip2 < $nar | /nix/bin/nix --restore "$out" || exit 1

4
corepkgs/nar/unnar.sh.in Normal file
View file

@ -0,0 +1,4 @@
#! /bin/sh
echo "unpacking $nar to $out..."
bunzip2 < $nar | @bindir@/nix --restore "$out" || exit 1