Skip to content

Commit

Permalink
Create version file in bootstrap
Browse files Browse the repository at this point in the history
It is being used in the build process
  • Loading branch information
sharkwouter committed Oct 11, 2024
1 parent e680457 commit 65b82e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Prepare Doxyfile
run: |
sed -e 's/\$(PROJECT)/PSPSDK/' \
-e 's/\$(VERSION)/'`date +"%Y.%m.%d" | xargs echo -n`'/' \
-e 's/\$(VERSION)/'`date +"%Y-%m-%d" | xargs echo -n`'/' \
-e 's/\$(SRCDIR)/src/g' \
-e 's/\$(GENERATE_LATEX)/NO/' \
-e 's/\$(HAVE_DOT)/YES/' \
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ stamp-h1
compile_flags.txt
EBOOT.PBP
PARAM.SFO
VERSION
9 changes: 3 additions & 6 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ msg() {
[ $quiet -eq 0 ] && echo $1
}

if [ ! -f $top_srcdir/VERSION ]; then
echo "${progname}:"
echo " Installation problem: Can't find file VERSION"
exit 1
fi

while [ $# -gt 0 ]; do
case $1 in
-h|--help)
Expand All @@ -64,6 +58,9 @@ while [ $# -gt 0 ]; do
esac
done

# Create version file used while building
date +"%Y-%m-%d" > $top_srcdir/VERSION

# default mode is generation
if [ $generate -eq 1 ]; then
msg "Running aclocal:"
Expand Down

0 comments on commit 65b82e3

Please sign in to comment.