Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
0532c9ab
Commit
0532c9ab
authored
Jul 22, 2006
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do a better job of trying to be able to run these
scripts from 'anywhere' git-svn-id:
https://svn.musicpd.org/mpd/trunk@4430
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
c454122a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
makedist.sh
scripts/makedist.sh
+5
-0
makerpm.sh
scripts/makerpm.sh
+4
-4
No files found.
scripts/makedist.sh
View file @
0532c9ab
...
@@ -5,6 +5,9 @@ PWD=`pwd`
...
@@ -5,6 +5,9 @@ PWD=`pwd`
## assume the base directory.
## assume the base directory.
if
test
"
`
basename
$PWD
`
"
==
"scripts"
;
then
if
test
"
`
basename
$PWD
`
"
==
"scripts"
;
then
cd
../
cd
../
else
MYOLDPWD
=
`
pwd
`
cd
`
dirname
$0
`
/../
fi
fi
if
test
-e
Makefile
if
test
-e
Makefile
...
@@ -17,4 +20,6 @@ make dist
...
@@ -17,4 +20,6 @@ make dist
if
test
"
`
basename
$PWD
`
"
==
"scripts"
;
then
if
test
"
`
basename
$PWD
`
"
==
"scripts"
;
then
cd
contrib/
cd
contrib/
else
cd
$MYOLDPWD
fi
fi
scripts/makerpm.sh
View file @
0532c9ab
...
@@ -4,9 +4,9 @@ PWD=`pwd`
...
@@ -4,9 +4,9 @@ PWD=`pwd`
## If we're not in the scripts directory
## If we're not in the scripts directory
## assume the base directory.
## assume the base directory.
if
test
"
`
basename
$PWD
`
"
!=
"scripts"
&&
\
if
test
"
`
basename
$PWD
`
"
!=
"scripts"
;
then
test
-d
scripts
;
then
MYOLDPWD
=
`
pwd
`
cd
scripts
cd
`
dirname
$0
`
fi
fi
./makedist.sh
./makedist.sh
...
@@ -25,5 +25,5 @@ then
...
@@ -25,5 +25,5 @@ then
fi
fi
if
test
"
`
basename
$PWD
`
"
!=
"scripts"
;
then
if
test
"
`
basename
$PWD
`
"
!=
"scripts"
;
then
cd
..
cd
$MYOLDPWD
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment