Changeset 294ba8d in freewrt


Ignore:
Timestamp:
Jul 21, 2006, 10:39:54 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
8936285
Parents:
c5f2acf
Message:
never use && in Makefiles, always use
and reverse test logic
  • quote properly
  • missing line continuation chars

git-svn-id: svn://www.freewrt.org/trunk/freewrt@332 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/Makefile

    rc5f2acf r294ba8d  
    6060        $(CP) ./default/* $(IDIR_BASE)
    6161        $(SED) 's,$$R,$(REV),g' $(IDIR_BASE)/etc/banner
    62         test -n $(BR2_RUNTIME_PACKAGES_URL) && \
    63                 $(SED) 's,^src freewrt.*$$,src freewrt $(BR2_RUNTIME_PACKAGES_URL),' \
    64                     -e '/^src freewrt/s,"\(.*\)",\1,' $(IDIR_BASE)/etc/ipkg.conf
     62        test -z '$(BR2_RUNTIME_PACKAGES_URL)' || \
     63            $(SED) 's,^src freewrt.*$$,src freewrt $(BR2_RUNTIME_PACKAGES_URL),' \
     64            -e '/^src freewrt/s,"\(.*\)",\1,' $(IDIR_BASE)/etc/ipkg.conf
    6565        $(SED) 's,@TARGET@,$(BOARD)-$(KERNEL),g' $(IDIR_BASE)/etc/ipkg.conf
    66         test -n $(BR2_RUNTIME_PASSWORD) && \
    67                 $(SED) 's,*NP*,$(MD5CRYPT),g' $(IDIR_BASE)/etc/passwd
    68         test -n $(BR2_RUNTIME_SSHKEY) && ( \
    69             mkdir -p $(IDIR_BASE)/etc/dropbear \
    70             echo $(BR2_RUNTIME_SSHKEY) > $(IDIR_BASE)/etc/dropbear/authorized_keys \
     66        test -z '$(BR2_RUNTIME_PASSWORD)' || \
     67            $(SED) 's,*NP*,$(MD5CRYPT),g' $(IDIR_BASE)/etc/passwd
     68        test -z '$(BR2_RUNTIME_SSHKEY)' || ( \
     69            mkdir -p $(IDIR_BASE)/etc/dropbear; \
     70            echo '$(BR2_RUNTIME_SSHKEY)' >$(IDIR_BASE)/etc/dropbear/authorized_keys; \
    7171        )
    7272        mkdir -p $(IDIR_BASE)/dev
Note: See TracChangeset for help on using the changeset viewer.