Changeset 48 for bundle_creation/makefile
- Timestamp:
- Jun 5, 2014, 11:56:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bundle_creation/makefile
r29 r48 1 ALL: CONTENTS ARCHIVE 2 @echo ALL DONE 1 HOST=178.63.97.203 2 PORT=51010 3 SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/ 3 4 4 ARCHIVE: 5 VERSIONFILE=../scripts/usr/local/lib/7dtd/VERSION 6 VERSION=$(shell cat ${VERSIONFILE} | grep "Version" | cut -d\ -f2) 7 ARCHIVENAME=management_scripts_v${VERSION}.tar.gz 8 9 build: CONTENTS ${ARCHIVENAME} 10 @echo Bundle built successfully 11 12 all: build upload 13 @echo Bundle built and uploaded 14 15 upload: ${ARCHIVENAME} 16 @echo Uploading files... 17 @scp -P ${PORT} ${ARCHIVENAME} ${VERSIONFILE} ${HOST}:${SERVERPATH} 18 @ssh -p ${PORT} ${HOST} "cd ${SERVERPATH}; rm -f management_scripts.tar.gz; ln -s ${ARCHIVENAME} management_scripts.tar.gz" 19 20 ${ARCHIVENAME}: CONTENTS 5 21 @echo Creating archive... 6 @tar -czf management_scripts_v`cat usr/local/lib/7dtd/VERSION | grep "version" | cut -d\ -f3`.tar.gzetc home usr22 @tar -czf ${ARCHIVENAME} etc home usr 7 23 8 24 CONTENTS: SCRIPTS SSD … … 20 36 clean: 21 37 @echo Cleaning intermediate stuff... 22 -@find * -type d -exec rm -R {} \; 2>/dev/null23 @echo "Ignore that error ;)" 38 @rm -Rf usr home etc ${ARCHIVENAME} 39
Note:
See TracChangeset
for help on using the changeset viewer.