Merge pull request #183 from stikonas/false
Rebuild false.c in coreutils 5.
This commit is contained in:
commit
56a164e108
|
@ -24,6 +24,11 @@ cp lib/ftw_.h lib/ftw.h
|
|||
cp lib/search_.h lib/search.h
|
||||
catm config.h
|
||||
|
||||
# We will rebuild it
|
||||
rm src/false.c
|
||||
|
||||
rm src/dircolors.h
|
||||
|
||||
patch -Np0 -i ../../patches/modechange.patch
|
||||
patch -Np0 -i ../../patches/mbstate.patch
|
||||
patch -Np0 -i ../../patches/ls-strcmp.patch
|
||||
|
|
|
@ -12,6 +12,11 @@ src_prepare() {
|
|||
cp lib/search_.h lib/search.h
|
||||
touch config.h
|
||||
|
||||
# Rebuild pregenerated file
|
||||
rm -f src/false.c
|
||||
|
||||
rm -f src/dircolors.h
|
||||
|
||||
# Bison pre-generated file
|
||||
rm lib/getdate.c
|
||||
|
||||
|
|
|
@ -86,6 +86,13 @@ LIB_SRC = acl posixtm posixver strftime getopt getopt1 hash hash-pjw addext argm
|
|||
|
||||
LIB_OBJECTS = $(addprefix $(LIB_DIR)/, $(addsuffix .o, $(LIB_SRC)))
|
||||
|
||||
$(SRC_DIR)/false.c: $(SRC_DIR)/true.c
|
||||
cp $< $@
|
||||
sed -i -e s/true/false/g \
|
||||
-e s/success/failure/g \
|
||||
-e 's/(EXIT_SUCCESS)/(EXIT_FAILURE)/g' \
|
||||
$@
|
||||
|
||||
$(LIB_DIR)/libfettish.a: $(LIB_OBJECTS)
|
||||
$(AR) cr $@ $^
|
||||
|
||||
|
|
|
@ -96,6 +96,13 @@ LIB_SRC = acl alloca posixtm posixver strftime getopt getopt1 hash hash-pjw adde
|
|||
|
||||
LIB_OBJECTS = $(addprefix $(LIB_DIR)/, $(addsuffix .o, $(LIB_SRC)))
|
||||
|
||||
$(SRC_DIR)/false.c: $(SRC_DIR)/true.c
|
||||
cp $< $@
|
||||
sed -i -e s/true/false/g \
|
||||
-e s/success/failure/g \
|
||||
-e 's/(EXIT_SUCCESS)/(EXIT_FAILURE)/g' \
|
||||
$@
|
||||
|
||||
$(LIB_DIR)/libfettish.a: $(LIB_OBJECTS)
|
||||
$(AR) cr $@ $^
|
||||
|
||||
|
|
Loading…
Reference in New Issue