morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 30895bba83cbb2bdcb5412b7c7347f0fd7d3d614
parent 07ebd808c5300ff48a7f633c81fff4a6423fb8ac
Author: sin <sin@2f30.org>
Date:   Wed,  5 Mar 2014 12:21:37 +0000

Be consistent and use "$var" instead of ${var} or "${var}"

Diffstat:
Mpkgs/9base | 2+-
Mpkgs/busybox | 4++--
Mpkgs/crossmusl | 4++--
Mpkgs/dwm | 2+-
Mpkgs/fs | 2+-
Mpkgs/ncurses | 4++--
Mpkgs/prepare_root | 8++++----
Mpkgs/syslinux | 2+-
Mpkgs/vim | 2+-
9 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/pkgs/9base b/pkgs/9base @@ -12,6 +12,6 @@ build: crossmusl for t in $targets; do cd $t make -j$nprocs CC=$CC - cp $t $root/bin/ + cp $t "$root/bin/" cd .. done diff --git a/pkgs/busybox b/pkgs/busybox @@ -5,8 +5,8 @@ build: crossmusl cd src/busybox-$v cp $top/stuff/busybox.config .config make -j$nprocs CC=$CC busybox - cp busybox "${root}/bin" - cd "${root}/bin" + cp busybox "$root/bin" + cd "$root/bin" ln -sf busybox addgroup ln -sf busybox adduser ln -sf busybox bzip2 diff --git a/pkgs/crossmusl b/pkgs/crossmusl @@ -9,6 +9,6 @@ build: prepare_root mv "$root/opt/cross/$arch-linux-musl/$arch-linux-musl/lib64"/* "$root/opt/cross/$arch-linux-musl/$arch-linux-musl/lib" fi for t in ${targets}; do - ln -sf ../opt/cross/$arch-linux-musl/bin/$arch-linux-musl-$t $root/bin/$t + ln -sf ../opt/cross/$arch-linux-musl/bin/$arch-linux-musl-$t "$root/bin/$t" done - ln -sf gcc ${root}/bin/cc + ln -sf gcc "$root/bin/cc" diff --git a/pkgs/dwm b/pkgs/dwm @@ -9,4 +9,4 @@ build: tinyxlib sed -i "s@LDFLAGS = -s ${LIBS}@LDFLAGS = $LDFLAGS ${LIBS} @" config.mk sed -i "s@CC = cc@CC = $CC@" config.mk make - make DESTDIR=${root} install + make DESTDIR="$root" install diff --git a/pkgs/fs b/pkgs/fs @@ -2,4 +2,4 @@ git="git://git.2f30.org/fs" build: prepare_root cd src/fs - cp -r * "${root}/" + cp -r * "$root/" diff --git a/pkgs/ncurses b/pkgs/ncurses @@ -4,13 +4,13 @@ url="$mirror/ncurses.tar.gz" build: crossmusl cd src/ncurses-$v cp $top/stuff/ncurses-fallback.c ncurses/fallback.c - CC="$CC -static" ./configure --prefix="${libcroot}" --mandir="$root/share" --without-tests \ + CC="$CC -static" ./configure --prefix="$libcroot" --mandir="$root/share" --without-tests \ --with-normal --enable-sigwinch --disable-nls --without-dlsym \ --without-cxx-binding --enable-widec \ --with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx make -j$nprocs make install - cd $root/lib + cd "$root/lib" for lib in ncurses form panel menu ; do ln -sf lib${lib}w_g.a lib${lib}_g.a ln -sf lib${lib}w.a lib${lib}.a diff --git a/pkgs/prepare_root b/pkgs/prepare_root @@ -1,12 +1,12 @@ build: - mkdir -p ${root} - cd ${root} + mkdir -p "$root" + cd "$root" mkdir -p boot bin dev emul etc home mnt opt proc root share src sys tmp var mkdir -p dev/pts dev/shm opt/cross share/doc share/fonts/encodings share/man share/terminfo var/empty var/log var/run rm -f include - ln -s opt/cross/${arch}-linux-musl/${arch}-linux-musl/include include + ln -s "opt/cross/$arch-linux-musl/$arch-linux-musl/include" include rm -f lib - ln -s opt/cross/${arch}-linux-musl/${arch}-linux-musl/lib lib + ln -s "opt/cross/$arch-linux-musl/$arch-linux-musl/lib" lib rm -f usr ln -s . usr rm -f sbin diff --git a/pkgs/syslinux b/pkgs/syslinux @@ -2,4 +2,4 @@ url="$mirror/syslinux.tar.gz" build: prepare_root cd src - cp -r syslinux/* $root/ + cp -r syslinux/* "$root/" diff --git a/pkgs/vim b/pkgs/vim @@ -9,4 +9,4 @@ build: ncurses --disable-nls --disable-netbeans make -j$nprocs make DESTDIR="$root" install - ln -sf vim $root/bin/vi + ln -sf vim "$root/bin/vi"