Skip to content

Commit

Permalink
Ensure that 'make win32' works in a git repository
Browse files Browse the repository at this point in the history
The win32/make_installer script assumes that it is running
in a top-level directory named "wings-<version>" (as generated
by "make dist").

Fix this problem by extracting the version number from
the vsn.mk file instead of from the directory name.
  • Loading branch information
bjorng committed Dec 5, 2009
1 parent 78876f3 commit 3495957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win32/make_installer
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ fi
# Copy the Wings application.

WINGS_DIR="`pwd`"
WINGS_APP=`basename "$WINGS_DIR"`
WINGS_VSN=`echo "$WINGS_APP" | sed -e 's/.*wings-//'`
WINGS_VSN=`sed -n "/WINGS_VSN/s/^WINGS_VSN[^0-9]*//p" vsn.mk`
WINGS_APP="wings-$WINGS_VSN"

dest="$DEST_ROOT"

Expand Down

0 comments on commit 3495957

Please sign in to comment.