Skip to content

Commit 9435622

Browse files
committed
Don't use rename in Makefile
rename is not portable between distros (or even versions of distros)
1 parent b00d784 commit 9435622

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,14 @@ $(DIST_ZIP): $(PY_SOURCES) $(SUBDIRS)
138138
$(DIST_WHEEL): $(PY_SOURCES) $(SUBDIRS)
139139
$(PYTHON) $(PYFLAGS) setup.py bdist_wheel --universal
140140

141-
$(DIST_DEB): $(PY_SOURCES) $(SUBDIRS) $(DEB_SOURCES)
142-
# build the binary package in the parent directory then rename it to
143-
# project_version.orig.tar.gz
144-
$(PYTHON) $(PYFLAGS) setup.py sdist --dist-dir=../
145-
rename -f 's/$(NAME)-(.*)\.tar\.gz/$(NAME)_$$1\.orig\.tar\.gz/' ../*
141+
$(DIST_DEB): $(PY_SOURCES) $(SUBDIRS) $(DEB_SOURCES) $(DIST_TAR)
142+
cp $(DIST_TAR) ../$(NAME)_$(VER).orig.tar.gz
146143
debuild -b
147144
mkdir -p dist/
148145
for f in $(DIST_DEB); do cp ../$${f##*/} dist/; done
149146

150-
$(DIST_DSC): $(PY_SOURCES) $(SUBDIRS) $(DEB_SOURCES)
151-
# build the source package in the parent directory then rename it to
152-
# project_version.orig.tar.gz
153-
$(PYTHON) $(PYFLAGS) setup.py sdist --dist-dir=../
154-
rename -f 's/$(NAME)-(.*)\.tar\.gz/$(NAME)_$$1\.orig\.tar\.gz/' ../*
147+
$(DIST_DSC): $(PY_SOURCES) $(SUBDIRS) $(DEB_SOURCES) $(DIST_TAR)
148+
cp $(DIST_TAR) ../$(NAME)_$(VER).orig.tar.gz
155149
debuild -S
156150
mkdir -p dist/
157151
for f in $(DIST_DSC); do cp ../$${f##*/} dist/; done

0 commit comments

Comments
 (0)