]> err.no Git - util-linux/commitdiff
build: cfdisk doesn't exist on some architectures.
authorLaMont Jones <lamont@debian.org>
Wed, 12 Sep 2007 16:04:41 +0000 (10:04 -0600)
committerLaMont Jones <lamont@debian.org>
Wed, 12 Sep 2007 16:04:41 +0000 (10:04 -0600)
debian/rules

index 3bce8c68e59568f2132561145dcb2f17a41a2906..c542fc54129eee919dde9cb733de634d579c83b6 100755 (executable)
@@ -109,7 +109,7 @@ ifneq ($(DISTRO),Debian)
 endif
        cd debian; if [ -f util-linux/sbin/fdisk ]; then \
            ln util-linux/sbin/*fdisk fdisk-udeb/usr/sbin; \
-           mv fdisk-udeb/usr/sbin/cfdisk cfdisk-udeb/usr/sbin; \
+           S=fdisk-udeb/usr/sbin/cfdisk; if [ -f $$S ]; then mv $$S cfdisk-udeb/usr/sbin; fi; \
        fi
        cd debian/util-linux-locales && find usr/share/locale -type f | while read x; do ln $$x ../cfdisk-udeb/$$x; done
 ifeq ($(DEB_HOST_ARCH_OS),linux)