#!/bin/bash
REPOS_DIR=/var/local-repos
REPOS_NAME=newslash
+BUILD_DIR=build_dir
echo copy packages to $REPOS_DIR/$REPOS_NAME/ ...
-cp -f build/*.deb build/*.build* build/*.changes $REPOS_DIR/$REPOS_NAME/
-cd $REPOS_DIR
+cp -f $BUILD_DIR/*.deb $BUILD_DIR/*.build* $BUILD_DIR/*.changes $REPOS_DIR/$REPOS_NAME/
+cd $REPOS_DIR/$REPOS_NAME
echo building repository...
-apt-ftparchive packages $REPOS_NAME | gzip > $REPOS_NAME/Packages.gz
+apt-ftparchive packages . | gzip > Packages.gz