* "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless

function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
This commit is contained in:
Eelco Dolstra
2012-01-18 20:16:00 +00:00
parent f7159c195a
commit c556a6ea46
629 changed files with 931 additions and 939 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ rec {
phaseNames = ["doMake" "copyFiles"];
copyFiles = a.fullDepEntry ''
ensureDir $out/bin
mkdir -p $out/bin
cp cfdg $out/bin/
ensureDir $out/share/doc/${name}
mkdir -p $out/share/doc/${name}
cp *.txt $out/share/doc/${name}
'' ["defEnsureDir" "doMake"];
+1 -1
View File
@@ -22,7 +22,7 @@ rec {
libc = if a.stdenv ? glibc then a.stdenv.glibc else "";
doCmake = a.fullDepEntry(''
ensureDir $PWD/builddir
mkdir -p $PWD/builddir
cd builddir
export NIX_LDFLAGS="$NIX_LDFLAGS -ldl -L$out/lib"
cmake .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=$out -DDL_LIB=${libc}/lib
+1 -1
View File
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
'';
buildPhase = ''
ensureDir $out/bin
mkdir -p $out/bin
set +e
sh install
set -e
+1 -1
View File
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
'';
preInstall = ''
ensureDir $out/bin $out/man/man1
mkdir -p $out/bin $out/man/man1
'';
meta = {
+1 -1
View File
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
";
installPhase = "
ensureDir $out/bin
mkdir -p $out/bin
cp glxinfo glxgears $out/bin/
";
}
+1 -1
View File
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
'';
preInstall = ''
ensureDir $out/bin
mkdir -p $out/bin
'';
meta = {
+2 -2
View File
@@ -27,13 +27,13 @@ stdenv.mkDerivation {
'';
installPhase = ''
ensureDir $out/bin
mkdir -p $out/bin
cp pdfread.py $out/bin
chmod +x $out/bin/pdfread.py
LIBSUFFIX=lib/${python.libPrefix}/site-packages/
PYDIR=$out/$LIBSUFFIX
ensureDir $PYDIR
mkdir -p $PYDIR
cp -R *.py pylrs $PYDIR
wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pil}/$LIBSUFFIX/PIL:$PYDIR \
+2 -2
View File
@@ -5,12 +5,12 @@ preBuild() {
}
preInstall() {
ensureDir $out/bin
mkdir -p $out/bin
}
postInstall() {
# Install the "prefabs".
ensureDir $out/share/ploticus/prefabs && \
mkdir -p $out/share/ploticus/prefabs && \
cd .. && \
cp -rv prefabs/* $out/share/ploticus/prefabs
+1 -1
View File
@@ -34,7 +34,7 @@ rec {
cd ..
'' ["doMake"];
createDirs = fullDepEntry ''
ensureDir $out/bin $out/lib $out/include $out/share
mkdir -p $out/bin $out/lib $out/include $out/share
'' ["defEnsureDir"];
name = "libdecodeqr-" + version;
+2 -2
View File
@@ -31,8 +31,8 @@ buildPhase() {
}
preInstall() {
ensureDir $out
ensureDir $out/lib
mkdir -p $out
mkdir -p $out/lib
}
genericBuild
+1 -1
View File
@@ -32,7 +32,7 @@ rec {
doDeploy = a.simplyShare "welkin";
createBin = a.fullDepEntry ''
ensureDir "$out/bin"
mkdir -p "$out/bin"
echo "#! ${a.stdenv.shell}" > "$out/bin/welkin"
echo "export JAVA_HOME=${jre}" >> "$out/bin/welkin"
echo "\"$out/share/welkin/welkin.sh\" \"\$@\"" >> "$out/bin/welkin"