Skip to content

Commit

Permalink
pack.cmd: use name-x.x.x style
Browse files Browse the repository at this point in the history
    modified:   kmididec.txt
    modified:   pack.cmd
  • Loading branch information
komh committed Sep 2, 2020
1 parent 4625dbe commit 941249f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kmididec.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Upload Information Template for Hobbes.nmsu.edu
===============================================

Archive Filename: kmididec@SHORT_VER@.zip
Archive Filename: kmididec-@VER@.zip
Short Description: kmididec v@VER@
Long Description: kmididec v@VER@
K MIDI DECoder(kmididec) is a library in order to decode MIDI to PCM using
Expand Down
5 changes: 3 additions & 2 deletions pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sDistFiles = 'kmidi.exe' '/',
sCmd = 'sed -n "s/^#define' sVerMacro '*\\\"\(.*\)\\\"$/\1/p"' sVerHeader
sVer = getOutput( sCmd )
sShortVer = removeNonNumbers( sVer )
sPackageNameVer = sPackageName || sShortVer
sPackageNameVer = sPackageName || '-' || sVer

'gmake' 'clean'
'gmake' 'RELEASE=1'
Expand All @@ -49,7 +49,8 @@ do while strip( sDistFiles ) \= ''
'ginstall' sRepoDir || '/' || sSrc sPackageNameVer || sDestDir
end

'git' 'archive' '--format' 'zip' sVer '>' sPackageNameVer || '/src.zip'
'git' 'archive' '--format' 'zip' sVer '--prefix' sPackageNameVer || '/' '>',
sPackageNameVer || '/' || sPackageNameVer || '-src.zip'

'rm' '-f' sPackageNameVer || '.zip'
'zip' '-rpSm' sPackageNameVer || '.zip' sPackageNameVer
Expand Down

0 comments on commit 941249f

Please sign in to comment.