OSDN Git Service

fix installer.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 25 Dec 2009 02:05:41 +0000 (02:05 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 25 Dec 2009 02:05:41 +0000 (02:05 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@356 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/Makefile

index 4382cff..f6d89d8 100644 (file)
@@ -7,15 +7,11 @@ VER = $(MAJOR).$(MINOR).$(REVISION)
 DEST = $(PREFIX)/rec10
 
 install:
-       if [/usr/bin/test -d $(PREFIX)/rec10 -eq 1]; then
-               mkdir $(PREFIX)/rec10
-       fi
+       if ! [ -d $(PREFIX)/rec10 ]; then;mkdir -p $(PREFIX)/rec10 ;fi
        cp ./*.py $(DEST)/
        install -m755 ./rec10 $(DEST)/
        ln $(DEST)/rec10 /usr/local/bin
        chmod 755 /usr/local/bin/rec10
-       if [/usr/bin/test -f /etc/rec10.conf -eq 1]; then
-               cp ./rec10.conf /etc/rec10.conf
-       fi
+       if ! [ -f /etc/rec10.conf ]; then ;cp ./rec10.conf /etc/rec10.conf;fi
 uninstall:
        rm -r $(DEST)