Changeset c858ba4e for git-version.sh


Ignore:
Timestamp:
09/13/2023 06:10:38 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
48d8f5a
Parents:
a9dc972
git-author:
Xi Ruoyao <xry111@…> (09/13/2023 06:08:06 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/13/2023 06:10:38 AM)
Message:

build: Add "make dist"

For creating a tarball without .git directory easier. The tarball will
include version.ent and LFS-RELEASE files so the book rendered from it
won't show "unknown" for all dates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version.sh

    ra9dc972 rc858ba4e  
    1818    # Either it's not a git repository, or git is unavaliable.
    1919    # Just workaround.
     20
     21        if [ -e LFS-RELEASE ]; then
     22                exit 0
     23        fi
     24
    2025    echo "<![ %sysv; ["                                    >  version.ent
    2126    echo "<!ENTITY version           \"unknown\">"         >> version.ent
     
    6671echo "<!ENTITY releasedate       \"$full_date\">"          >> version.ent
    6772echo "<!ENTITY copyrightdate     \"1999-$year\">"          >> version.ent
     73
     74[ -z "$DIST" ] || echo $version > "$DIST"
Note: See TracChangeset for help on using the changeset viewer.